JSP request parameter is returning null on a jsp include with Weblogic.

Posted by doug on Stack Overflow See other posts from Stack Overflow or by doug
Published on 2010-05-12T17:34:51Z Indexed on 2010/05/12 18:14 UTC
Read the original article Hit count: 323

Filed under:
|
|
|
|

Hello,

I am having trouble with the jsp:include tag. I have code like the following:

<jsp:include page="./Address.jsp">
    <jsp:param value="30" name="tabIndex"/>
    <jsp:param value="true" name="showBox"/>
    <jsp:param value="none" name="display"/>    
</jsp:include>

The page is included fine, but when I try to access the parameters on the Address.jsp page, they are null. I have tried accessing them the following ways (with jstl):

     <c:out value="${param.tabIndex}" />
     <c:out value="${param['tabIndex']} />
     <%= request.getParameter("tabIndex") %>
     <c:out value="${pageScope.param.tabIndex} />
     ${param.tabIndex}

etc...

Here is the kicker, The above works fine in tomcat 5.5. However, when I deploy the application in Weblogic 10, it does not.

Also, the code works fine in other areas of my application (on weblogic) just not a particular page.

Any Ideas?

Thanks!

© Stack Overflow or respective owner

Related posts about jspinclude

Related posts about jsp