OraclePortalnJSP
Programmer
Trying out following code with oracle portal v2 and JSP running on tomcat servlet container: But parameters are not getting displayed. portlet is filtering request parameters from url. Why is that so?
<%@page language="java" import="java.util.*, oracle.portal.provider.v2.render.PortletRenderRequest, oracle.portal.provider.v2.http.HttpCommonConstants,oracle.portal.provider.v2.ParameterDefinition"%>
<HTML>
<HEAD>
<TITLE>
Snoop Page
</TITLE>
</HEAD>
<BODY>
<B>Snoop Page</B>
<TABLE border=1>
<%
PortletRenderRequest prr = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
String name=null;
String value =null;
for(Enumeration e = prr.getParameterNames(); e.hasMoreElements(); )
{
name = (String)e.nextElement();
value = request.getParameter(name);
%>
<TR>
<TD><%=name%></TD><TD><%=value%></TD>
</TR>
<% } %>
</TABLE>
</BODY>
</HTML>
<%@page language="java" import="java.util.*, oracle.portal.provider.v2.render.PortletRenderRequest, oracle.portal.provider.v2.http.HttpCommonConstants,oracle.portal.provider.v2.ParameterDefinition"%>
<HTML>
<HEAD>
<TITLE>
Snoop Page
</TITLE>
</HEAD>
<BODY>
<B>Snoop Page</B>
<TABLE border=1>
<%
PortletRenderRequest prr = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
String name=null;
String value =null;
for(Enumeration e = prr.getParameterNames(); e.hasMoreElements(); )
{
name = (String)e.nextElement();
value = request.getParameter(name);
%>
<TR>
<TD><%=name%></TD><TD><%=value%></TD>
</TR>
<% } %>
</TABLE>
</BODY>
</HTML>