-
1. Re: Sending default (welcome) page through Faces Servlet
jaikiran Apr 26, 2008 9:29 AM (in response to scheible)The default application on JBoss is configured in ROOT.war in %JBOSS_HOME%\server\default\deploy\jboss-web.deployer folder. You can make your application the default one, so that http://localhost:8080 points to your application. Follow this thread for more details:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121917 -
2. Re: Sending default (welcome) page through Faces Servlet
scheible Apr 26, 2008 11:17 AM (in response to scheible)Thank you for the information. It is useful although not quite what I was looking for.
I know that many applications have a static welcome page. However, this application is configured to have a JSF welcome page. I can't figure out how to make the welcome page go through the Faces Servlet. Is this possible? I had considered possibly writing a filter that grabbed directory references from the client and appended the starting page to them. That seems like a lot of work but I suspect it would work. Alternatively, using an Apache proxy and the rewrite mod to do the same thing would probably work. In any case, if there is an easier method of do this, I prefer to use it.
Thanks. -
3. Re: Sending default (welcome) page through Faces Servlet
jaikiran Apr 27, 2008 11:52 AM (in response to scheible)In your web.xml, you can add a welcome page, like this:
<?xml version="1.0" encoding="UTF-8"?> <web-app> <display-name>EJB3 Persistence</display-name> <servlet> <servlet-name>FacesServlet</servlet-name> <servlet-class>blah.blah.blah</servlet-class> </servlet> <servlet-mapping> <servlet-name>FacesServlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
And then in the index.jsp (which will be at the root of the war), you can have this redirection:<html> <body> <% request.getRequestDispatcher("/dummy.faces").forward(request,response); %> </body> </html>