<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE faces-config PUBLIC | |
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" | |
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd"> | |
<faces-config xmlns="http://java.sun.com/JSF/Configuration"> | |
<navigation-rule> | |
<from-view-id>*</from-view-id> | |
<navigation-case> | |
<from-outcome>helloWorld</from-outcome> | |
<to-view-id>/helloworld/index.jsp</to-view-id> | |
</navigation-case> | |
</navigation-rule> | |
<navigation-rule> | |
<from-view-id>/helloworld/index.jsp</from-view-id> | |
<navigation-case> | |
<from-outcome>sayhello</from-outcome> | |
<to-view-id>/helloworld/hello.jsp</to-view-id> | |
</navigation-case> | |
</navigation-rule> | |
<managed-bean> | |
<managed-bean-name>namebean</managed-bean-name> | |
<managed-bean-class>${package}.NameBean</managed-bean-class> | |
<managed-bean-scope>request</managed-bean-scope> | |
</managed-bean> | |
</faces-config> |