DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29575>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29575

html:image tag throws "bean not found" exception





------- Additional Comments From [EMAIL PROTECTED]  2004-06-15 21:57 -------
The "value" of an "image" Input form element is not consistently passed by browsers as 
a request 
parameter.  Neither Apple Safari nor MSIE (for Mac or Windows) pass the value, 
although Mozilla does.  

The HTML spec doesn't specifically mention handling the "value" attribute of an image 
input element, 
but it does describe the behavior which is consistent among browsers -- the 
coordinates of the click 
are sent in two request parameters named foo.x and foo.y where "foo" is the value of 
the "name" 
attribute.

In any case, if Struts is to support accepting x/y coordinates, then it cannot also 
accept a string value.  
See also "Struts Tip #1 - Use an ImageButtonBean to represent an image button." 
(http://
www.jguru.com/faq/view.jsp?EID=893423) for extensive discussion of this.  Treating the 
x/y 
coordinates of properties of a nested bean collides directly with using the same 
property name to store 
a value of any other type.

In fact, this makes me think that we should consider removing the "value" attribute 
from the html:image 
tag -- I'll leave this open to see if anyone else has opinions on it instead of 
marking "WONTFIX/
INVALID" just yet.

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

Reply via email to