Struts input sends encoded characters to form bean. (< > £)

F

faisalzargar

Hi

Got a problem. We're using the struts portlet framework for websphere
portal and are encountering an issue whereby if a user inputs the
following characters, < > or £, then the form bean receives the values
as &lt; &gt; etc.

As this problem has only been noticed a year down the line, the
information is getting stored in the database (via Hibernate) as &lt;,
&gt; etc.

I was wondering, if there's anyway to automatically convert these back
to the original < > characters before they are set to the form
attributes.

Cheers

Faisal Zargar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top