Input value and escape

F

francan00

I have a Form input field in my JSP:
Code:
<input name="nickname"  type="text" value="<%= NameClass.getInfo()
%>" />


How do I make sure this data is escaped correctly to be able to show
quotes and apostrophes. I tried slash in front but it didnt work:
(name=\"nickname\")

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top