Hello,
I have to use a proprietary taglib (I could modify it if i need to) which use rtexprvalue set to true.
Until now, no problem. In fact, the problem occurs when i try to pass some arguments:
In my
jsp, the taglib is called like
<mytaglib param="<%= MyClass.getValue(...) %>" />
where MyClass.getValue(...) is a method wich returns a
string containing xml. To prevent some incorrect behaviour, xml characters and quotes are escaped into their html equivalents : < become < , " become ".
Let's take the example where MyClass.getValue() return the string "< tag param1="abc" />" (which basically correspond to <tag param1="abc" />).
I want escaped html characters remain inchanged. It is the case when i use an old version of wsad (version 5.1.1, which take about 90% of my memory and force me to go and take a
coffee each time i want to run my appli) However, if i want to use
tomcat, the behaviour is not the same and the application crash before calling the taglib code because the html characters are evaluated.
the error looks like (free traduction cause i use a localized version of tomcat, so error messages might be irrelevant) :
org.apache.jasper.JasperException: Unable to compile class for jsp
An error occurred at line :334 in jsp file :/WEB-INF/blablabla.jsp
_jspx_th_mytaglib_mytaglib_2.setParam("<tag param1="abc">")
So, what i want to do is to prevent tomcat (as wsad seem to handle it) escaping html characters when evaluating taglib parameter.
The jsp version i use is 1.1
Thanks.
[ August 23, 2006: Message edited by: Max Cok ]
[ August 23, 2006: Message edited by: Max Cok ]
[ August 23, 2006: Message edited by: Max Cok ]
[ August 23, 2006: Message edited by: Max Cok ]
[ August 23, 2006: Message edited by: Max Cok ]