Fails to pass parameters between jsp´s
--------------------------------------
Key: JBPORTAL-2339
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2339
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Windows Vista Oracle 10g Jboss Portal 2.7.0
Reporter: Nilson Parra
Configuring a portlet as follows, two JPS's pages:
-> page "uno.jsp"
<body>
<jsp:include page="/jsp/dos.jsp?Miparametro=30"
flush="true">
<jsp:param name="otroParametro" value="49" />
</jsp:include>
</body>
-> page "dos.jsp"
<body>
<%out.println("MiParametro:
"+request.getParameter("MiParametro"));
out.println("otroParametro:
"+request.getParameter("otroParametro"));
%>
</body>
-> class portlet
public class TestPortlet extends GenericPortlet {
protected void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/jsp/uno.jsp");
prd.include(request, response);
}
}
-> file portlet.xml
<portlet>
<portlet-name>PruebaPortlet</portlet-name>
<portlet-class>test.portlettest.TestPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<portlet-info>
<title>Prueba Portlet</title>
</portlet-info>
</portlet>
when viewing the page with the portlet is obtained as follows:
MiParametro: null otroParametro: null
atte,
Nilson Parra
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira