tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13443] New: - request.getRequestURI() problem with jsp:include tag
Date Wed, 09 Oct 2002 07:57:57 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: rdv@noroutine.fr


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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message