1 Reply Latest reply on Jul 9, 2007 11:43 AM by Pedro Mota

    Redirection to login page if not logged in

    Pedro Mota Newbie


      I'm trying to change the redirection that Seam does when you are not logged in.

      (1) I have defined this in pages.xml

      <page view-id="/admin/*">

      (2) In the header of pages.xml

      <pages xmlns="http://jboss.com/products/seam/pages"
       xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"

      But when I try to access a page under /admin I get a 404 error because it is trying to access this page: login.seam (and it doesn't exist in the project) but I have defined my login page as home.seam

      What am I doing wrong?