一个关于简单jsf页面跳转的问题
<?xml version= "1.0 "?>
<!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>
<!-- <navigation-rule>
<description> Navigation from the hello page. </description>
<from-view-id> /hello.jsp </from-view-id>
<navigation-case>
<from-outcome> success </from-outcome>
<to-view-id> /goodbye.jsp </to-view-id>
</navigation-case>
</navigation-rule> -->
<navigation-rule>
<from-view-id> /hello.jsp </from-view-id>
<navigation-case>
<from-outcome> login </from-outcome>
<to-view-id> /goodbye.jsp </to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<description> The one and only HelloBean. </description>
<managed-bean-name> user </managed-bean-name>
<managed-bean-class> org.jia.hello.HelloBean
</managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
</managed-bean>
</faces-config>
index.jsp
<%@page contentType= "text/html "%>
<%@page pageEncoding= "gbk "%>
<%@taglib prefix= "f " uri= "http://java.sun.com/jsf/core "%>
<%@taglib prefix= "h " uri= "http://java.sun.com/jsf/html "%>
<html> <head> <title> wewe </title>
</head> <body>
<f:view>
<h:form>
<h3> 請輸入您的名稱 </h3>
名稱: <h:inputText value= "#{u