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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Escaping the backslash character in JSP

843840Jul 15 2008 — edited Jul 16 2008
The input String to my JSP can contain \ character, I need to normalize this \ character to words "back slash". I tried the following and it doesn't work:

normVal = normVal.replaceAll("\\\"," back slash ");

Can someone please tell me how i can get this to work?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2008
Added on Jul 15 2008
5 comments
2,461 views