Web Hosting Java, JSP, Tomcat 6, J2EE, Servlets, Struts, Jboss
JavaSercer Pages A.5 Escape Characters Since certain character
January 31, 2007 on 12:30 pm | In Java | JavaSercer Pages A.5 Escape Characters Since certain character sequences are used to represent start and stop tags, you sometimes need to escape a character so the container doesn’t interpret it as part of a special character sequence. In a scripting element, if you need to use the characters %> literally, you must escape the greater-than character with a backslash: <% String msg = "Literal %> must be escaped”; %> To avoid the character sequence <% in template text being interpreted as the start of a scripting element, you must escape the percent sign: This is template text, and <% is not a start of a scriptlet. In an attribute value, you must use the following escapes: attr='a value with an escaped ' single quote' attr="a value with an escaped " double quote" attr="a value with an escaped \ backslash" attr="a value with an escaped %> scripting end tag” attr=”a value with an escaped <% scripting start tag" page 269
Note: If you are looking for inexpensive but high quality provider to host and run your serlvet application check Astra servlet hosting services
No Comments yet
Sorry, the comment form is closed at this time.
...I
just wanted to take the time to say "Thank you!" for our new webmail
system. It's great! Thanks for taking such good care of us.
Thanks
for helping me out. Just for the record, Webhostingjava.net has been a great
web host! So far your support and handling of questions has far
exceeded that of a "larger web hosting company".
I
would like to thank you for helping me with my domain...You have
shown me great patience and professionalism. I would not hesitate to
recommend you to my clients.