Forums de discussion

Jasper errors

Jeff Williams, modifié il y a 15 années.

Jasper errors

Regular Member Publications: 107 Date d'inscription: 15/07/08 Publications récentes
I keep getting a lot of escaped string errors from jasper:

15:02:31,711 ERROR [IncludeTag:52] org.apache.jasper.JasperException: /html/portlet/calendar/edit_event.jsp(412,87) Attribute value  event == null ? LanguageUtil.get(pageContext, "new-event") : event.getTitle()  is quoted with " which must be escaped when used within the value


This type of thing usually causes portlets to not display items....same happened with the rss-portlet.

While I can fix these just fine, I'm just wondering what may be the reason for this happening? Am I seeing a version problem with Jasper here? I don't see how I could be....

any ideas?
thumbnail
Juan Fernández, modifié il y a 14 années.

RE: Jasper errors

Liferay Legend Publications: 1261 Date d'inscription: 02/10/08 Publications récentes
Jeff Williams:
any ideas?


Hi Jeff:
a quick fix for this is adding the JAVA_OPTS this variable in setenv.sh (or setenv.bat in Windows) file in Tomcat:

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false


Greetings