[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Sending default (welcome) page through Faces Servlet
jaikiran
do-not-reply at jboss.com
Sun Apr 27 11:52:07 EDT 2008
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>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147065#4147065
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147065
More information about the jboss-user
mailing list