Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HTML Encoding in JSP

843838Mar 9 2006 — edited Dec 19 2006
I want to display the output in a JSP page as per the data entered in a form in another JSP page.

I am able to do this; however, if HTML tags are used, then I want them to be treated as literals.

Further, I want to preserve the line spaces/new lines while displaying the output. By default, the browser justs treats the output as HTML.

Pls. advise.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2007
Added on Mar 9 2006
3 comments
329 views