Skip to content

Instantly share code, notes, and snippets.

@topolik
Last active December 30, 2015 09:38
Show Gist options
  • Save topolik/7810283 to your computer and use it in GitHub Desktop.
Save topolik/7810283 to your computer and use it in GitHub Desktop.
Reading layout's query string: category=[name]
public class Portlet extends GenericPortlet {
@Override
protected void doView(RenderRequest renderRequest, RenderResponse response) throws PortletException, IOException {
String category = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest)).getParameter("category");
response.getWriter().println("Category: " + category);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment