Hi.

There are two solutions, depending on what you want to do.

If you want to have an image map (i.e. you want to recover the
coordinates of the image that was clicked), you can follow the
directions for the image tag
(http://jakarta.apache.org/struts/struts-html.html#image).

However, if you have a form with a few image buttons and you just want
to know which one of them is clicked, it is the getter and not the
setter method that is called (don't ask me why; all I know is that is
works).

Hope it helps.

"Friedli Beat [UFA AG Her]" wrote:

>
>
> In a jsp Form this code works works perfect:
> <html:submit property="editPos" > Position<%= val %> </html:submit>
>
> Now I decided to use an image instead of a button like this:
> <html:image property="editPos" src="graphics/editWarenkorb.gif"
> value="Position<%= val %>" />
>
> The generated Code looks fine to me:
> <input type="image" name="editPos"
> src="graphics/editWarenkorb.gif;jsessionid=F3C57101544373C1913436E0277103C7"
> value="Position0">
>
> But the value 'Position0' is never filled up in the Formbean as the
> setter-method never is called. And I know, that the Formbean and all
> works correct as it works fine withe the submit-Button. Is my
> html:image Tag not good?
>
> Thanks for any help or idea
>
> Beat Friedli

--
---------------------
Terence JACYNO
Galasoft Inc.


Reply via email to