真是邪门了 当用请求路径action="register1"请求path="/register1"时 ,出现上面的错误,当用action="/register1"请求 path="/register1"时,出现下面错误,好像是找不到请求文件! HTTP Status 404 - /reg1.do--------------------------------------------------------------------------------type Status reportmessage /reg1.dodescription The requested resource (/reg1.do) is not available. --------------------------------------------------------------------------------Apache Tomcat/5.0.28
"/path"是struts-config.xml中action
的path属性的值
<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd"><struts-config><!-- =========================================== Global forwards Definitions -->
<global-forwards>
<forward name="error"
path="/WEB-INF/results/confirm.jsp"/>
</global-forwards>
<!-- =========================================== Action Mapping Definitions --> <action-mappings>
<action path="register1"
type="alei.RegisterAction1">
<forward name="success"
path="/WEB-INF/results/confirm.jsp"/>
</action>
</action-mappings></struts-config>
<action path="/register1"
type="alei.RegisterAction1">
<forward name="success"
path="/WEB-INF/results/confirm.jsp"/>
</action>
</action-mappings></struts-config>
ACTION 改成 /register1.do
还是不行啊
HTTP Status 404 - /reg1.do--------------------------------------------------------------------------------type Status reportmessage /reg1.dodescription The requested resource (/reg1.do) is not available.
--------------------------------------------------------------------------------Apache Tomcat/5.0.28