WebSphere Portal Server - How to disable encoding HTML characters in Websphere Portal?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2007 > How to disable encoding HTML characters in Websphere Portal?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to disable encoding HTML characters in Websphere Portal?

2007-03-28, 7:20 am

I developed a struts portlet on Websphere Portal 5.1.
It is very simple that only one text field in the form, and I want to use it to insert a record into database.
In JSP: <html:text property="productName" maxlength="20"/>
and column in database is varchar(20).
My trouble is that when the text contains HTML characters, e.g. '<>', the input will be encoded to '& LT; & GT;' automatically after submitting.
Therefore, an error - 'The length of Product Name is over than the allowed length' will occure.
I have tried that in a normal web application instead of Portal, and the characters would not be encoded. So, I tried to find out how to disable that in configure files of Portal. Unfortunately, nothing can be found.
Can anyone give me some advise? Thank you very much.

2007-03-28, 7:20 am

http://publib.boulder.ibm.com/infoc...ps/tbl_sec.html
Check the fourth problem.

Just be aware of the price for turning it off...


/Jonas V
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com