DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11931>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11931

incorrect parsing inside jsp:include

           Summary: incorrect parsing inside jsp:include
           Product: Tomcat 4
           Version: 4.1.9
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper 2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Inside jsp:include "value" attribute the parser failed to recognize 2
consecutive expressions:

<% String x = "abc"; String y = "def"; %>
<jsp:include page="nothing.jsp">
        <jsp:param name="param_name" value="<%= x %><%= y %>"/>
</jsp:include>

Relevent protion of the bug_jsp.java:
...
String x = "abc"; String y = "def";  out.write("\r\n\r\n");
JspRuntimeLibrary.include(request, response, "nothing.jsp" + "?" + "param_name="
+ java.net.URLEncoder.encode( x %><%= y ), out, false);
...

"x %><%= y" is really not what one expects to find there.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to