0 Replies Latest reply on Feb 13, 2007 3:40 AM by zzcvbgfbgsg dfgdggf

    how to show the menu by role

    zzcvbgfbgsg dfgdggf Newbie

      I config the file in jboss " login-config.xml" and config then WEB-INF/web.xml for example:
      "<security-constraint>
      <web-resource-collection>
      <web-resource-name>systemAdmin</web-resource-name> systemAdmin
      <url-pattern>/index1.html</url-pattern>
      <url-pattern>/index2.html</url-pattern>

      ....
      <security-constraint>
      <web-resource-collection>
      <web-resource-name>orderOperation</web-resource-name> orderAdmin
      <url-pattern>/index3.html</url-pattern>
      <url-pattern>/index4.html</url-pattern>
      ....


      I can login and access role by the different user name,but I want to show the different menu by different user logined.
      for example :
      When system administrator login ,the application shows the index1.html , index2.html and hiddens index3.html , index4.html.
      When order administrator login ,the application shows the index3.html ,index4.html and hiddens index3.html , index4.html.

      How can I do ? thanks:)