I am storing some HTML as a String which I want to output to a JSP.
Is there a simply utility function that I should use for this, or should I write my own. I could write it easily but I’d rather do it the most common way.
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need to do anything special. A simple expression will output the string without escaping:
${str}It takes extra work to get escaping, such as using the JSTL
<c:out/>tag. You must be doing something like that, either in the JSP, or to theStringbefore the JSP is rendered.