You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dirk Jaeckel <bi...@gate5.de> on 2001/09/14 14:14:25 UTC

multiple tags how to differentiate?

Hi!

What are the names of the Methods in the ActionForm that are called
if I have more than one <html:image> in my form. I know that setX()
and setY() are called if I set the property of the <html:image>-tag
to "".  But how can I detect which button was hit?


Example: 

<html:form action="/map" method="GET">

<html:image property="buttonImage2" page="/Map/image.gif"/>
<html:image property="buttonImage1" page="/Map/image2.gif"/>

</html:form>

The request contains the attributes: buttonImage1.x, buttonImage1.y
and buttonImage2.x, buttonImage2.y. What are the names of the Methods
in the ActionForm? I need to know which button was hit.


Dirk