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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to