注册 登录
编程论坛 J2EE论坛

大家帮帮忙,Struts分页,提示这个是什么原因啊。

qxhan1128 发布于 2007-02-05 16:06, 814 次点击

TTP Status 400 - Invalid path /search was requested

--------------------------------------------------------------------------------

type Status report

message Invalid path /search was requested

description The request sent by the client was syntactically incorrect (Invalid path /search was requested).


--------------------------------------------------------------------------------

Apache Tomcat/5.0.30


4 回复
#2
qxhan11282007-02-05 16:15

struts-config.xml 配置文件
<?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="searchForm" type="struts.form.SerachForm" />
</form-beans>


<global-exceptions />
<global-forwards >

</global-forwards>


<action-mappings >
<action
attribute="searchForm"
input="/form/serach.jsp"
name="searchForm"
path="/search"
scope="session"
type="struts.action.SerachAction">
<forward name="search" path="/form/serach.jsp" />
</action>
</action-mappings>
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>

#3
支离破碎2007-02-05 17:29
Invalid path /search was requested
建议看看WEB。XML文件,还有就是你的表单的action的写法
#4
qxhan11282007-02-05 17:46

真郁闷,源代码贴不上来.

#5
梦之幽兰2007-02-07 10:51
CONFIG没错的话 自己去页面看看 action=/ 或者.do 的 我以前就是写错这东西
1