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=13443>.
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=13443

request.getRequestURI() problem with jsp:include tag

           Summary: request.getRequestURI() problem with jsp:include tag
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


the script:
file test.jsp:
<jsp:include page="include.jsp" flush="true>
<%=request.getRequestURI()%><br />
<%=request.getRequestURL()%>

file include.jsp:
<p>simple text</p>

When I run test.jsp, instead of writing the good URI and URL (with the path to 
file), it writes piece of headers like :E HTML PUBLIC "-//W3C

It works well only if the test.jsp file is forwarded by a servlet.
In the other cases, inserting a code like <%request.getRequestURI();%> resolve 
the problem.

It seems that this bug doesn't appear in Tomcat 4.0.x release

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

Reply via email to