How do I make sure this data is escaped correctly to be able to show quotes and apostrophes. I tried slash in front (name=\"nickname\" and it didnt work.
I dont have JSF,Struts, JSTL, StringEscapeUtils (from Apache commons) due to restrictions on my Tomcat 4.1.27 container.
Is there something I can use or please advise best way to handle this?
[ September 29, 2008: Message edited by: Dan Parsons ]
Originally posted by Bear Bibeault:
If you were using the JSTL (you can with Tomcat 4, just be sure to use JSTL 1.0), the <cut> tag takes care of that.
Without that, you can write a method that performs the same function, replacing the quote and angle bracket characters with their HTML entity equivalents.
Thanks, I created Utility class to handle it and it works great. I could have used JSTL and Apache Commons but wanted to get more experience with creating and using my own classes.
Java seems to be funner when you can create classes to solve issues where
I seem to learn more when I dont use pre existing libraries. It enables me learn more Java basics that I would not have learned or seen if I use pre existing libraries. Is this something most beginners have done here?
[ October 02, 2008: Message edited by: Dan Parsons ]