0 Replies Latest reply on Sep 5, 2007 9:50 AM by Jiang Liu

    security role configuration question

    Jiang Liu Newbie

      Hi,
      i am doing a basic security requirement that some pages in the project should only be displayed to certain users with certain login roles.

      In my xhtml code, for example:

      <s:div id=1 rendered="#{s:hasRole('guest')>
      ...
      </s:div>

      <s:div id=2 rendered="#{s:hasRole('user')>
      ...
      </s:div>

      <s:div id=3 rendered="#{s:hasRole('admin')}">
      ...
      </s:div>

      Where could i define that admin can display all 3 divs where user can display the first two and guest can only view the first div?

      The problem is currently the user that login to my system can only see one div(depends on which role he is signed in).

      Cheers!!