1 Reply Latest reply on Sep 17, 2007 7:37 PM by youssef Hbali

    How to hide securised pages ?

    youssef Hbali Newbie

      Hi every body,
      I'm developing a portal using the jboss portal.
      I'm securing some pages using roles, however i want to hide pages that are denied for certain users.


      here's the code for securing the page :

      <security-constraint>
      <policy-permission>
      <role-name>Admin</role-name>
      <action-name>view</action-name>
      </policy-permission>
      </security-constraint>


      is there anyway to hide this page if a user that not have the admin role is connected.


      I'll appreciate any suggestion.

      youssef hbali.
      here's y mail: youssefhbali@yahoo.fr





        • 1. Re: How to hide securised pages ?
          youssef Hbali Newbie

           

          "jboss-hb" wrote:
          Hi every body,
          I'm developing a portal using the jboss portal.
          I'm securing some pages using roles, however i want to hide pages that are denied for certain users.


          here's the code for securing the page :

          <security-constraint>
          <policy-permission>
          <role-name>Admin</role-name>
          <action-name>view</action-name>
          </policy-permission>
          </security-constraint>


          is there anyway to hide this page if a user that doesn't have the admin role is connected.


          I'll appreciate any suggestion.

          youssef hbali.
          here's y mail: youssefhbali@yahoo.fr