tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13223] - JSP pages in XML syntax do not compile properly
Date Thu, 03 Oct 2002 20:54:25 GMT
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 Andreas.Junghans@fh-karlsruhe.de  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 jsp-spec-comments@eng.sun.com 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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message