HTTP Status 404 - /spring_struts_hibernate_messages/index.jsp 检查啦web.xml文件配置没问题。。。
所以怀疑是struts的配置文件有问题。。下面我贴上来。。麻烦各个高手帮我看看。。<?xmlversion="1.0"encoding="ISO-8859-1"?><!D...
所以怀疑是struts的配置文件有问题。。下面我贴上来。。麻烦各个高手帮我看看。。
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<form-beans>
<form-bean name="loginForm" type="com.bjsxt.messages.web.forms.LoginActionForm"/>
<form-bean name="messageForm" type="com.bjsxt.messages.web.forms.MessageActionForm"/>
</form-beans>
<global-forwards>
<forward name="login" path="/login.jsp" redirect="true" />
<forward name="index" path="/index.jsp" redirect="true" />
</global-forwards>
<action-mappings>
<action
path="/login"
type="org.springframework.web.struts.DelegatingActionProxy"
name="loginForm"
scope="request"
input="/login.jsp"
/>
<action
path="/message"
type="org.springframework.web.struts.DelegatingActionProxy"
name="messageForm"
scope="request"
parameter="method"
input="/send.jsp"
>
<forward name="main" path="/main.jsp"></forward>
<forward name="detail" path="/detail.jsp"></forward>
<forward name="inbox" path="/inbox.jsp"></forward>
<forward name="outbox" path="/outbox.jsp"></forward>
<forward name="trash" path="/trash.jsp"></forward>
<forward name="record" path="/record.jsp"></forward>
<forward name="record_input" path="/record_input.jsp"></forward>
<forward name="inbox_delete_success" path="/message.do?method=inbox" redirect="true" ></forward>
<forward name="outbox_delete_success" path="/message.do?method=outbox" redirect="true" ></forward>
<forward name="restore_success" path="/message.do?method=trash" redirect="true"></forward>
</action>
</action-mappings>
<message-resources parameter="MessageResources" />
</struts-config> 展开
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<form-beans>
<form-bean name="loginForm" type="com.bjsxt.messages.web.forms.LoginActionForm"/>
<form-bean name="messageForm" type="com.bjsxt.messages.web.forms.MessageActionForm"/>
</form-beans>
<global-forwards>
<forward name="login" path="/login.jsp" redirect="true" />
<forward name="index" path="/index.jsp" redirect="true" />
</global-forwards>
<action-mappings>
<action
path="/login"
type="org.springframework.web.struts.DelegatingActionProxy"
name="loginForm"
scope="request"
input="/login.jsp"
/>
<action
path="/message"
type="org.springframework.web.struts.DelegatingActionProxy"
name="messageForm"
scope="request"
parameter="method"
input="/send.jsp"
>
<forward name="main" path="/main.jsp"></forward>
<forward name="detail" path="/detail.jsp"></forward>
<forward name="inbox" path="/inbox.jsp"></forward>
<forward name="outbox" path="/outbox.jsp"></forward>
<forward name="trash" path="/trash.jsp"></forward>
<forward name="record" path="/record.jsp"></forward>
<forward name="record_input" path="/record_input.jsp"></forward>
<forward name="inbox_delete_success" path="/message.do?method=inbox" redirect="true" ></forward>
<forward name="outbox_delete_success" path="/message.do?method=outbox" redirect="true" ></forward>
<forward name="restore_success" path="/message.do?method=trash" redirect="true"></forward>
</action>
</action-mappings>
<message-resources parameter="MessageResources" />
</struts-config> 展开
2个回答
2012-02-29
展开全部
404现在说明找不到该页面。现在主流都是用struts2了,还在用struts1呢?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询