multiple html:image tags how to differentiate?

2001-09-14 Thread Dirk Jaeckel
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

multibox and reset()

2001-09-14 Thread Dirk Jaeckel
Hi! I am having trouble resetting a StringArray that is connected to a html:multibox-tag. HTML-Example: html:form action=/map method=GET html:multibox value=parking property=layer/ html:multibox value=petrol property=layer/ html:image property=layers

Re: Multiple Submit Buttons per Form

2001-09-17 Thread Dirk Jaeckel
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 problems solved

2001-09-18 Thread Dirk Jaeckel
Hi! I posted a problem about not beeing able to differentiate between multiple html:image-tags in the form bean. While I am not sure I have understand the whole problem I found a solution that works for me (and maybe for others too). I modified org.apache.struts.util.BeanUtils.java:

Re: AW: html:image does not call the setter-method of the form

2001-09-21 Thread Dirk Jaeckel
On Fri, Sep 21, 2001 at 09:25:31AM -0400, Terence Jacyno wrote: Hi. Struts would call getLogin() or getCancel(), depending on whether the user clicked Login or Cancel. You can then test which button was clicked by calling isCancelPressed() and isCancelPressed(). Trust me. It works.

Re: AW: html:image does not call the setter-method of the form

2001-09-21 Thread Dirk Jaeckel
On Sat, Sep 22, 2001 at 02:52:17AM +0200, Dirk Jaeckel wrote: On Fri, Sep 21, 2001 at 09:25:31AM -0400, Terence Jacyno wrote: Hi. Struts would call getLogin() or getCancel(), depending on whether the user clicked Login or Cancel. You can then test which button was clicked