"Christopher Schultz" <ch...@christopherschultz.net> wrote in message 
news:4ae5cabb.7070...@christopherschultz.net...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Konstantin,
>
>> Those are NOT comments. The JSP comments are <%-- --%>.
>>
>> I think that if you switch to XML syntax for JSP pages (using jspx
>> files instead of jsp), those will be treated as XML comments and
>> properly ignored.
>
> Apologies for not thinking about that: Pete, if you're not using XML
> syntax (as I expected you were), then your complaint is not valid: your
> JSP is /not/ an XML document.
>
> If you use .jspx (I think?), then XML syntax will be acceptable.
>
>> So I am sure that the above is not a Tomcat bug.
>
> On the other hand, shouldn't the JSP compiler pass-through everything
> except for directives? HTML is a common enough use case for JSP that
> SGML comments ought to be tolerated in these cases.
>

Except for the fact that section 5.4 of the (2.1) JSP spec precludes having 
anything except <jsp:param /> in the body of a <jsp:include> element. 
Allowing template text in there is then a Container-specific feature and so 
renders the webapp non-portable.

It would be a bug if the error happened for a page in XML syntax however.

> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkrlyrsACgkQ9CaO5/Lv0PDDGACglcZR5X+kwfi1y2w82Sb5nuW5
> hioAn1I2ZY0r3CZSanzU9TpMyHEXWfTr
> =XZ+i
> -----END PGP SIGNATURE----- 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to