You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Philippe Couas <pc...@infodev.fr> on 2009/01/07 17:40:52 UTC

Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

Hi,
 
I have replace tomcat 5.5.26 to tomcat 5.5.27 on same server with same JDK
and same config.


I have folowing error message
jasper.JasperException: /jsp/servlet24/supervisionv5.jsp(6,23) Attribute
value request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp" is quoted
with " which must be escaped when used within the value
Code :


<inf:redirect
page="<%=request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp"%>">
<inf:param name="id" value="<%=request.getParameter("id") %>" />
<inf:param name="repobj" value="<%=request.getParameter("repobj") %>" />
<inf:param name="design" value="true" />
<inf:param name="sitepreffix" value="<%=request.getParameter("sitepreffix")
%>" />
<inf:param name="ipl" value="<%=request.getParameter("ipl") %>" />
<inf:param name="context" value="<%=request.getParameter("context") %>" />
<inf:param name="niveau" value="<%=request.getParameter("niveau") %>" />
<inf:param name="sectionspreffix"
value="<%=request.getParameter("sectionspreffix") %>" />
</inf:redirect>

Problem is in line
<inf:redirect
page="<%=request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp"%>">
Why could i not make this now ?
 
Regards
Philippe

 

RE: Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Philippe Couas [mailto:pcouas@infodev.fr]
> Subject: Compilation problem when i release tomcat 5.5.26 to
> tomcat 5.5.27
>
> /jsp/servlet24/supervisionv5.jsp(6,23) Attribute value
> request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp" is quoted
> with " which must be escaped when used within the value

Read this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=45015

The old behavior can be reinstated by setting the system property:
  org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING
to false.  See:
http://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html

 - Chuck

P.S. Double-posting is annoying.


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

Posted by Mark Hagger <ma...@m-spatial.com>.
I had a similar problem when I switched to tomcat6, as a workaround I
ended up modifying my jsp to build the string outside of the <%=..%> bit
and insert it in one lump.

Ie changed something like


<%= "'" + otherthing + "'"%>

into

<%
String txt = "'" + otherthing + "'";
%>
<%= txt %>

which seemed to make it work again.  I couldn't really decide if this
was a tomcat bug or not and promptly forgot all about it really.

Mark


On Wed, 2009-01-07 at 17:40 +0100, Philippe Couas wrote:
> Hi,
>  
> I have replace tomcat 5.5.26 to tomcat 5.5.27 on same server with same JDK
> and same config.
> 
> 
> I have folowing error message
> jasper.JasperException: /jsp/servlet24/supervisionv5.jsp(6,23) Attribute
> value request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp" is quoted
> with " which must be escaped when used within the value
> Code :
> 
> 
> <inf:redirect
> page="<%=request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp"%>">
> <inf:param name="id" value="<%=request.getParameter("id") %>" />
> <inf:param name="repobj" value="<%=request.getParameter("repobj") %>" />
> <inf:param name="design" value="true" />
> <inf:param name="sitepreffix" value="<%=request.getParameter("sitepreffix")
> %>" />
> <inf:param name="ipl" value="<%=request.getParameter("ipl") %>" />
> <inf:param name="context" value="<%=request.getParameter("context") %>" />
> <inf:param name="niveau" value="<%=request.getParameter("niveau") %>" />
> <inf:param name="sectionspreffix"
> value="<%=request.getParameter("sectionspreffix") %>" />
> </inf:redirect>
> 
> Problem is in line
> <inf:redirect
> page="<%=request.getContextPath()+"/jsp/servlet24/supervisionv4.jsp"%>">
> Why could i not make this now ?
>  
> Regards
> Philippe
> 
>  
> 
> 
> ________________________________________________________________________
> This email has been scanned for all known viruses by the MessageLabs SkyScan service.


________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs SkyScan service.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org