| C:\russ\dev\myapp\web\WEB-INF\faces-config.xml |
<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<description> Persistence bean for login</description>
<managed-bean-name> userBean </managed-bean-name>
<managed-bean-class>com.aintnoclouds.UserBean </managed-bean-class>
<managed-bean-scope>session </managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id> /login.jsp </from-view-id>
<navigation-case>
<from-outcome> login </from-outcome>
<to-view-id> /welcome.jsp </to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>