You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manuel Lenz <Lz...@viessmann.com> on 2003/05/22 12:56:35 UTC

Distinguish graphical submit buttons in http-post

Hi yours,
I have some graphical jsp-buttons on my jsp-page.
After clicking I´d like to distinguish witch button was pressed by the
user.
But the normal name-value is alway submit by every graphical button.
So I decided to use javascript to get a constant parameter from every
button.

Here is the code:

<a href="#" style="text-decoration:none;"
            onClick="javascript:document.value='banfForm'.value
='submit'.value='kreditorensuche';
                  document.value='BanfAction.do'.submit()">
                  <IMG border="0" src="test.gif" width="17" height="20"
title="Search" alt="Search">
</a>

Form-Bean = banfForm
field in banForm = submit
constant value = kreditorensuche
From-Action = BanfAction.do

Has anybody an idea?
It´s really urgent....

Manuel



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org