Hello JSP-Authors and Programmers,
when reading the spec 1.0 some stuff about
quoting and comments are not clear to me.
Here a few examples and I would like to know
- which are legal/illegal
and
what attribute values/output is generated
.
It would be very nice if someone shares her/his
wisdom with me!
Comments:
Ex1:
<!-- This comment should be parseable i think! </jsp:useBean> ! -->
Ex2:
<!-- This comment should be parseable i think! <%jsp:include%> ! -->
Ex3:
<!-- This comment should be parseable i think! Value: <%= "value1" %>! -->
Ex4:
<!-- This comment should be parseable i think! And code should be valid!
Value: <%= "value1" %>!
Scriptlet: <%= 0 %>
code: <% 0 %>
-->
Quoting:
Ex5:
Value: <% out.print("value1%\>"); %>
Ex6:
Value: <\%value1
Ex7:
<jsp:setProperty name="mybean" property="s" value='\'' />
Ex8:
<jsp:setProperty name="mybean" property="s" value="\"" />
Ex9:
<jsp:setProperty name="mybean" property="s" value="%\>" />
Ex10:
<othertag value="<\%value1">
Thank you very much for your help!
Ciao,
Carsten Heyl
===========================================================================
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