I am migrating my Application from Tomcat 7 to WebSphere 8.5
In Tomcat 7 i Used
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
to reslove Double Quote Issue while Compiling JSP page , i am searching for its eqvivalent parameter in WebSphere.
I Found a Web Container Custom Property
com.ibm.wsspi.jsp.evalquotedandescapedexpression=true
for WAS 8.5 but it is not working.
I get Following error:
JSPG0055E: Unable to create an xml attribute from name [] value [%]
Basically Error Occured in follwoing case
<html:input value="<%="abc"%>"></html:input>
now the Solution is
<html:input value='<%="abc"%>'></html:input>
but it is not possible in my case since there are so many JSPs,In Tomcat this Issue was Resolved by Adding following Property
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
If you have too many JSPs you can try the next conversion code. It covers many of the cases and after you can adjust those special cases: