On Sat, Sep 15, 2001 at 09:21:47AM +0200, Marcel Andres wrote:
> Hi
>
>I handle something like this, how you describe it at last. I
>route both buttons to a single action class, and this class decides,
>based on the pressed button (value), what to do.
How do you do this with image-buttons (<html:image>)?
The value is not submitted then, at least not with netscape 6.1 and IE 5.5.
I tried this:
<html:form action="/map" method="GET">
<html:image value="foo" property="layers" page="/img/update.gif" border="0" />
<html:image value="bar" property="layers" page="/img/update.gif" border="0" />
</html:form>
BTW: While rendering the page, getLayers is called. But I don't know whats done with
the result.
The only thing that is submitted is: ?layers.x=50&layers.y=1
I am not interested in the X- and Y-Coordinates. But I need to know
which button was pressed. Do you know the name(s) of the Method(s)
that are called in the form bean?
It is not:
public void setLayers(String in);
public void setLayers(String[] in);
public void setLayers_X(String in);
public void setLayers_Y(String in);
public void setLayersX(String in);
public void setLayersY(String in);
Dirk