Java Reference
In-Depth Information
<to-view-id>/notcreated.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/article.jsp</from-view-id>
<navigation-case>
<from-outcome>created</from-outcome>
<to-view-id>/created.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>notcreated</from-outcome>
<to-view-id>/notcreated.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Web configuration file
In the WEB-INF/web.xml , we need to add a servlet mapping for the javax.faces.
webapp.FacesServlet , which is required to invoke the JSF framework. When the /
faces/* URL pattern is included when running a JSF page, the Faces Servlet
gets invoked:
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
 
Search WWH ::




Custom Search