Now let us see how to secure a new portlet that uses only standard configurations.
In this recipe, we will access these Java Web Technologies:
This is the structure of a simple project working with portlets:
web.xml file contains only an empty
web-app tag to allow the deployment of the application.
Here is the
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> <portlet:defineObjects /> <div class="portlet-section-header"> | <%=renderRequest.isUserInRole("users")%> | <%=renderRequest.isUserInRole("administrators")%> </div>
Add the following roles ...