Case 1:
**Code on Portlet**
PortletURL manageUrl = response.createRenderURL();
manageUrl.setParameter("action", "search");
request.setAttribute("manageUrl",manageUrl);
**Code on Jsp(it can be any view layer)**
<a href="${manageUrl}">Click here </a>
Case 2:
**It can be any custom process action**
public void processAction(..)
{
ActionResponse.setRenderParameter("action", "search");
}
**It can be any custom render method**
public void doView(..)
{
System.out.println("Action value :-"+action);
ActionResponse.setRenderParameter("action", "search");
}
The second snippet also has a limitation.You can not use ActionResponse.setRenderParameter("action", "search"); and ActionResponse.sendRedirect("/some url"); simultaneously.