At 06:58 AM 8/12/2004, you wrote:

Oops, that was a typo. Should have read

<td><html:image src="delete.gif" name="<%= "delete_" + choiceKey %>" /></td>

If browsers did pick up "value" parameter, this problem would not even exist...


Some browsers do. What is your problem? Why are you adding "delete" in here?

There is no "name" attribute with image. I assume you mean to use the "property" attribute. There is no problem with this, even without a "value" attribute. If you use "property='<%= "delete" + choiceKey %>'", and (in your processing of the form):


String button = null; Enumeration enum = request.getParameterNames(); String parameterName = null; while(enum.hasMoreElements()) { parameterName = (String)enum.nextElement(); if(parameterName.endsWith(".x")) { button = parameterName.substring(0,parameterName.indexOf('.')); } }



the value of button will be "delete" + choiceKey. (See http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified.)

I am unclear what you are trying to do.

Michael


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



Reply via email to