My understanding is that, contrary to what the spec implies, any JSP tag is allowed
within an HTML comment. The JSP parser should not be concerned with HTML comment
syntax at all (which makes sense; a JSP page can output other content types than
text/html).
To ignore the directive in your example, use the <%-- --%> tags instead.
Wes
Sonny Kim wrote:
> Hi,
>
> Based on JSP docs, output comment is <!-- comment [<%= expression %> ] -->
>
> Is it possible to add other tag inside the output comment?
> For example, <!-- should this page directive be ignored or handled by JSP <%@
> page contentType="text/html; charset=UTF8" %> -->
>
> Is this a known bug?
>
> Thanks.
> -sonny
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html