portlet « Request « JSP-Servlet Q&A

1. JSR168 portlet request cuts param value after # symbol    stackoverflow.com

One of parameters for action link looks like: itemUrl=feedLink.html#xtor=RSS-3208 when I execute next code in backend in processAction():

String itemUrl = (String) request.getParameter("itemUrl");
,that I get next value: feedLink.html e.g. request cuts itemUrl value after # ...

2. Why is the servlet request not available in the portlet API    stackoverflow.com

The portlet API deos not provide any reference to the enclosing servlet request and response objects. I know it is not the preferred model of interaction with the user, but ...

3. added non sticky request params from a jsp    coderanch.com

One way is: When your portlet 'dispatches' to the jsp, add a parameter to the jsp, to indicate what params or whatever you want in your jsp. e.g. >> in your portlet, ... url of jsp has ?displayParams=no >> and in your jsp, you can make scriptlets to decide what kind of Render URLs you want, some with param, some doesnt ...

4. request.getparametervalues is giving null in JSp page in portlets    coderanch.com

<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@ page import="java.io.*"%> <%-- Uncomment below lines to add portlet taglibs to jsp <%@ page import="javax.portlet.*"%> <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> <%PortletPreferences prefs = renderRequest.getPreferences();%> --%> <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>