The documentation lists a "value" attribute for the <html:image> tag,
but I can't seem to get it to do anything for me. Is this attribute of
use or just a leftover since it inherited from the <html:submit> tag?



I would like to use an <html:image> in a list of query results to
activate an action on a certain result. Each <html:image> tag would have
the same name (property="addToCollection") and the value would be the id
of the data object:

<code>
 
   <html:image page="/images/check.gif" 
                value="<%=movie.getId()%>"  
                alt="I own this movie"
                property="addToCollection" />

</code>

Of course there would be many such <html:image> tags on each page of
results each with the same name ("property") and different values. The
entire page is a form, so each of the images must submit the same form,
but with a unique value for "addToCollection".

When the button is clicked, only "addToCollection.x" and
"addToCollection.y" come through as request parameters. 

Is there a way to access the value? 

Or do I have to go with javascript or something else?

TIA.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to