问一struts小问题
我使用myeclipse开发struts一简单的注册程序 把zhuce.jsp页面放在WEB-INF/form下 如下:
<?xml version= "1.0 " encoding= "UTF-8 "?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN " "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd ">
<struts-config>
<data-sources />
<form-beans >
<form-bean name= "zhuceForm " type= "com.zqswork.struts.form.ZhuceForm " />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute= "zhuceForm "
input= "/form/zhuce.jsp "
name= "zhuceForm "
path= "/zhuce "
scope= "request "
type= "com.zqswork.struts.action.ZhuceAction ">
<forward
name= "show.jsp "
path= "/form/show.jsp "
redirect= "true " />
</action>
</action-mappings>
<message-resources parameter= "com.zqswork.struts.ApplicationResources " />
</struts-config>
我的web.xml如下:
<?xml version= "1.0 " encoding= "UTF-8 "?>
<web-app xmlns= "http://java.sun.com/xml/ns/j2ee " xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " version= "2.4 " xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
<servlet>
<servlet-name> action </servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet </servlet-class>
<init-param>
<param-name> config </param-name>
<param-value> /WEB-INF/struts-config.xml </param-value>
</init-param>
<init-param>
<param-name> debug </param-name>
<param-value> 3 </param-value>
</init-param>
<init-param>
<param-name> detail </param-name>
<param-value> 3 </param-value>
</init-param>
<load-o