Close
jGuru Forums
Posted By: Anonymous Posted On: Thursday, June 21, 2001 09:06 AM
Hello
Ny servlet is writing a dynamic string as below:
out.println(frm + str + frmEnd);
frm and frmEnd are HTML formatted tags such as PRE and /PRE in <>. If str includes " <" is interpreted as an HTML relavent thing.
How can I solve this problem.
Thanks in advance.
Re: wrong HTML format in servlet output
Posted By: Alex_Chaffee Posted On: Sunday, June 24, 2001 10:49 AM
See What is the difference between URL encoding, URL r... for more information, and see http://www.purpletech.com/code/src/com/purpletech/util/Utils.java for a method that escapes entities for you.
Posted By: Anonymous Posted On: Thursday, June 21, 2001 10:21 PM
< = <> = >
Regards.
Posted By: Mittal_Bhiogade Posted On: Thursday, June 21, 2001 08:11 PM