DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13223>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13223 JSP pages in XML syntax do not compile properly ------- Additional Comments From [EMAIL PROTECTED] 2002-10-03 20:54 ------- Unfortunately, the hole is not plugged by JSP 2.0! From the spec (emphasis by me): "The <jsp:attribute> standard action allows the page author to define the value of a ***tag handler*** attribute in the body of an XML element instead of in the value of an XML attribute. The action may only appear as a subelement of a ***standard or custom action*** invocation." (Source: jsp-2_0-prd-spec.pdf, JSP.5.10, page 133) If I'm not completely mistaken, <jsp:attribute> is just a way of avoiding "%= ... %". The spec quote above clearly states that <jsp:attribute> cannot be used for "ordinary" XML tags (i.e. body content in contrast to standard or custom actions). Thus, I think Kin-Man's example (dynamically setting the attribute of a <td>-Tag) is invalid. Also, all examples for <jsp:attribute> in the spec refer to a custom action. If what you suggest really works in Tomcat 5, then Tomcat is (unfortunately) wrong. I sent a message about this to [EMAIL PROTECTED] some time ago, but never got an answer. Maybe it would help if a Tomcat developer brought this up once again (Kin-Man?)... This is a _very annoying, very ugly_ spec issue IMHO. Either you don't use the XML syntax, or you're forced to use strange and/or hard-to-implement workarounds. Oh well, I will stop ranting now ;-) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>