struts 配置路径问题

bbxyhaihua 07-04-25

求救:???????
HTTP Status 400 - Invalid path /jsp/information/teacher/teacherSelect was requested

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

type Status report

message Invalid path /jsp/information/teacher/teacherSelect was requested

description The request sent by the client was syntactically incorrect (Invalid path /jsp/information/teacher/teacherSelect was requested).


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

Apache Tomcat/5.5.23


点击激活<form name="form" method="POST" action="teacherSelect.do">
出现上述错误
struts的配置是:
<action name="teacherForm" path="/teacherSelect" scope="request" type="com.webtier.teacher.TeacherSelect" validate="true">
<forward name="teacherSelect" path="/jsp/information/teacher/teacherResult.jsp" />
</action>
还有就是:
我点击各个联接时地址栏的地址没有变化

请各位老师指点!
好象是配置路径问题
但是我能了好久没有成功!
谢谢。。。。。。。。。。

banq
2007-04-26 08:47

><form name="form" method="POST" action="teacherSelect.do">

action建议不要使用这种无URL路径的表示方法,如果当前的页面move到其他目录,你的代码不是要修改吗?将可维护性时刻放在脑子里.

使用html:form替代form ,aciotn="/teacherSelect.do"