File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes passing render parameters to doView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "passing render parameters to doView " Watch "passing render parameters to doView " New topic

passing render parameters to doView

vijay sag

Joined: Nov 04, 2012
Posts: 1
Hi all,

I'm setting render paramater in process actions as below.

public void processAction(ActionRequest request, ActionResponse response) throws PortletException {

response.setRenderParameter("strOrderId", "X1234");
super.processAction(request, response);


And trying to retrieve the above render paramater in doview method.

public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
response.getWriter().println("Render parameter" + request.getParameter("strOrderId"));

super.doView(request, response);

But I'm not able to retrieve this paramter in doView method. I researched in forums and in some threads its given that we can pass information to doView through render paramaters.

I'm using JSF JSR 168 portlets and portal version is

Could you please let me know whether im passing and retreiving the paramaters in right way?


George Stafford

Joined: Nov 20, 2012
Posts: 2
The way I found that worked for me was in the action to do the following:

actionRequest.getPortletSession().setAttribute("strOrderId", "X1234");

Then in the doView you can retrieve it from the portlet session:


I agree. Here's the link:
subject: passing render parameters to doView
It's not a secret anymore!