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!

inputHidden and HTML escape

843842Jan 31 2007 — edited Jan 31 2007
Hello all,
I've got one problem regarding inputHidden field.
In jsp page there is a hidden field:
 <h:inputHidden value="#{itemBean.content}" id="HtmlContentTextArea" />
 
Before page page is submitted i run javaScript function that populates this hidden field with value
 <p>& lt;strong& gt;STRONG& lt;/strong& gt;</p> 
Then from log I see that itembean.content value is
 & lt;p& gt;& lt;strong& gt;STRONG& lt;/strong& gt;& lt;/p& gt; 
So the question is how do I can set value whatever it is without escaping < and > characters ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2007
Added on Jan 31 2007
2 comments
302 views