This content has been marked as final. Show 1 reply
You need to use the Portlet Tag Library:
<%@ taglib uri=?http://java.sun.com/portlet? prefix=?portlet? %>
There is a defineObjects tag that gives access to the renderRequest object and then you can call renderRequest.getPortletSession().
See the Portlet Spec, chapter 22, for details: