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

Hi

Does this mean, if I want to use image-buttons instead of submit-Buttons I would have to put each one in a seperate form?

Hm, I had a look at the shop from Amazone. The use image-buttons as well, but each one has a different name like this:

name=submit.edit-gift.1
name=submit.edit-gift.2
name=submit.edit-gift.3

What is the trick they are doing? (All the image-buttons are in the same form)

Thanks for your Helb

Beat Friedli


---


I believe that the HTML specification says that for an input of type image
the value is not submitted to the server, instead the x- and y-coordinate of
the click is submitted. The name of these parameters is name.x and name.y,
where name is the name attribute of the element.

I don't think the tag-lib of struts is meant to do any trick to also send
the value parameter

--
Jan Sorensen
aragost

I believe that for the generated code the value is not submitted in the
request
>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


Reply via email to