authz.tld 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
  3. "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
  4. <taglib>
  5. <tlib-version>1.1.2</tlib-version>
  6. <jsp-version>1.2</jsp-version>
  7. <short-name>xtframe authz</short-name>
  8. <uri>/authz-tags</uri>
  9. <description>自定义标签“</description>
  10. <tag>
  11. <name>hasPermission</name>
  12. <tag-class>com.xtframe.web.tags.HasPermissionTag</tag-class>
  13. <body-content>JSP</body-content>
  14. <description>Displays body content only if the current Subject (user)
  15. 'has' (implies) the specified permission (i.e the user has the specified ability).
  16. </description>
  17. <attribute>
  18. <name>name</name>
  19. <required>true</required>
  20. <rtexprvalue>true</rtexprvalue>
  21. </attribute>
  22. </tag>
  23. <tag>
  24. <name>principal</name>
  25. <tag-class>com.xxtframe.web.tags.PrincipalTag</tag-class>
  26. <body-content>JSP</body-content>
  27. <description>Displays the user's principal or a property of the user's principal.</description>
  28. <attribute>
  29. <name>type</name>
  30. <required>false</required>
  31. <rtexprvalue>true</rtexprvalue>
  32. </attribute>
  33. <attribute>
  34. <name>property</name>
  35. <required>false</required>
  36. <rtexprvalue>true</rtexprvalue>
  37. </attribute>
  38. <attribute>
  39. <name>defaultValue</name>
  40. <required>false</required>
  41. <rtexprvalue>true</rtexprvalue>
  42. </attribute>
  43. </tag>
  44. </taglib>