Raible's Wiki
Raible Designs AppFuseHomepage- Korean - Chinese - Italian - Japanese QuickStart Guide User Guide Tutorials Other ApplicationsStruts ResumeSecurity Example Struts Menu
Set your name in
UserPreferences
Referenced by
JSPWiki v2.2.33
Hide Menu |
Step VIII: How to use the ACLs in your JSPsIn this step we add new JSP Tags to the corresponding pages in order to prevent that a user tries to execute an action he is not allowed to execute on an object. Securing the personList.jsp
<td class="buttonBar"> <authz:acl domainObject="${person}" hasPermission="4,8,1"> <input type="submit" class="button" name="save" onclick="bCancel=false" value="<fmt:message key="button.save"/>" /> </authz:acl> <c:if test="${person.id != null}"> <authz:acl domainObject="${person}" hasPermission="16,1"> <input type="submit" class="button" name="delete" onclick="bCancel=true;return confirmDelete('Person')" value="<fmt:message key="button.delete"/>" /> </authz:acl> </c:if> <input type="submit" class="button" name="cancel" onclick="bCancel=true" value="<fmt:message key="button.cancel"/>" /> </td>
Heres the relevant part of the SimpleAclEntry:
Next stepAdditional thoughts.
|