This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes HTML Character Escaping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "HTML Character Escaping" Watch "HTML Character Escaping" New topic
Author

HTML Character Escaping

changu mani
Ranch Hand

Joined: Aug 31, 2012
Posts: 30
Dear All,
I'm facing an issue. We have a text box in a JSP, where user enters and it got a limit of only 15 characters. When user types in applemango>>> we validate the same in a bean method.

Somehow in bean it goes as appleapple & gt; & gt; and crosses the limit of 15 characters and throws an error. How do I solve this issue? Requesting your inputs. How do I Unescape those HTML entities in bean method to HTML characters ? or is there anyway to make it not get escaped to HTML entities when reaching the bean method?

Please suggest.


Thanks in Advance
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTML Character Escaping
 
Similar Threads
Entity EJB instances at startup
Hibernate take 2: lazy loading issue
Java regex?
tags
Limit width of Select Box?