0 Replies Latest reply on Jul 8, 2007 1:02 PM by Nicola Ben

    Seam securityand servlets

    Nicola Ben Novice

      Hi!
      My seam app is called by http://myapp:8080/
      I need to require login if calling a servlet like http://myapp:8080/servlet?

      I tried different syntaxes in pages.xml:

      <pages login-view-id="/login.xhtml">
      
       <page view-id="/run" login-required="true"/><!-- run is the servlet to protect -->
       <page view-id="/protected/*" login-required="true"/> <!-- this works for pages under /protected/ -->
      ...
      </pages>
      


      /run and /run/* don't work.

      Could you suggest me the right way to do that, please?

      Thank you,
      Nico