一个及其间单的页面JSF不跳转,请大家看看
//web.xml
<?xml version= "1.0 " encoding= "UTF-8 "?>
<web-app version= "2.4 " xmlns= "http://java.sun.com/xml/ns/j2ee "
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-
app_2_4.xsd ">
<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>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</web-app>
//faces-config.xml
<?xml version= '1.0 ' encoding= 'UTF-8 '?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN "
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd ">
<faces-config>
<navigation-rule>
<from-view-id> /index.jsp </from-view-id>
<navigation-case>
<from-outcome> login </from-outcome>
<to-view-id> /welcome.jsp </to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name> InfoBean </managed-bean-name>
<managed-bean-class> mybean.InfoBean </managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
</managed-bean>
</faces-config>
//index.jsp
<%@taglib uri= "http://java.sun.com/jsf/core " prefix= "f " %>
<%@taglib uri= "http://java.sun.com/jsf/html " &nbs