You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/05/24 15:58:46 UTC

DO NOT REPLY [Bug 9388] New: - JSP include ignores parameter

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

JSP include ignores parameter

           Summary: JSP include ignores parameter
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: klaus.mutzbauer@moresophy.de


In this example test.jsp includes header.jsp with a parameter.
But the parameter is missing in the request object in header.jsp.
Works with <% request.setAttribute( "testparam", "1" ); %> instead of param tag.

test.jsp:
<html><body>
<jsp:include page="header.jsp">
<jsp:param name="testparam" value="1"/>
</jsp:include>
</body></html>

header.jsp:
<%
java.util.Enumeration enum = request.getAttributeNames();
while( enum.hasMoreElements() ) 
{   out.println( enum.nextElement() );	}
%>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>