Skip to content

Instantly share code, notes, and snippets.

@martinlau
Created August 18, 2012 11:16
Show Gist options
  • Save martinlau/3386180 to your computer and use it in GitHub Desktop.
Save martinlau/3386180 to your computer and use it in GitHub Desktop.
Portlet JSPs
<p>
/help.jsp
</p>
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0" %>
<p>
/view.jsp
</p>
<p>Count is ${count}</p>
<ul>
<li>
<portlet:actionURL var="incrementCount">
<portlet:param name="javax.portlet.action" value="increment" />
</portlet:actionURL>
<a href="${incrementCount}">Increment count</a>
</li>
<li>
<portlet:actionURL var="resetCount">
<portlet:param name="javax.portlet.action" value="reset" />
</portlet:actionURL>
<a href="${resetCount}">Reset count</a>
</li>
<li>
<portlet:renderURL var="helpURL" portletMode="help" />
<a href="${helpURL}">Help mode</a>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment