1 Reply Latest reply on Dec 11, 2008 7:43 PM by Val Sw

    Help...setting my application homepage

    giordano tamburrelli Newbie
      Hi,

      I am a Seam beginner :-) I am trying to setup a simple Seam,Jboss,mySQL application but I am not able to set the homepage of my application. Where I have to set it? In pages.xml? I simply want that when the user type the URL (http://localhost:8080/myappname) of my application he is automatically redirected to my initial page: "home.xhtml"

      Currently my pages.xml is:

      <?xml version="1.0" encoding="UTF-8"?>
      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"

             no-conversation-view-id="home.xhtml"
                       login-view-id="home.xhtml">

        
         
          <exception class="org.jboss.seam.security.NotLoggedInException">
              <redirect view-id="/home.xhtml">
                  <message severity="warn">You must be logged in to use this feature</message>
              </redirect>
          </exception>
         
          <exception class="javax.faces.application.ViewExpiredException">
              <redirect view-id="/home.xhtml">
                  <message severity="warn">Session expired, please log in again</message>
              </redirect>
          </exception>

      </pages>

      is that correct?
      Thank you for your help ;-)

      Bye,
      geeordanoh