JSP request parameter returns null in jsp include with Weblogic

I'm having problems with the jsp: include tag. I have code like:

<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 on, but when I try to access the parameters on the Address.jsp page, they are zero. I tried to access them in the following ways (using 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 deploying the application to Weblogic 10, this is not the case.

In addition, the code works fine in other areas of my application (on weblogic), and not on a specific page.

Any ideas?

Thank!

+3
source share
1 answer

try it

<jsp:include page="./Address.jsp?tabIndex=30&showBox=true&display=none" />
0

Source: https://habr.com/ru/post/1745150/


All Articles