HTTP Status 400 - Invalid path /showsport was requested 错误与解决方案
来源:互联网 发布:java 流重用 编辑:程序博客网 时间:2024/05/12 04:51
HTTP Status 400 - Invalid path /showsport was requested
type Status report
messageInvalid path /showsport was requested
descriptionThe request sent by the client was syntactically incorrect (Invalid path /showsport was requested).
Apache Tomcat/5.5.17
上面是我遇到的问题,经过仔细的检查发现是一个很小的问题却导致的。
下面是引起这个问题的源代码:
<%
for(int i=0;i<sportlist.size();i++)
{
AbstractSportnote sportnote=(Sportnote)sportlist.get(i);
%>
<tr>
<td valign="top" bgColor="#ffffff"><%=sportnote.getNoteSendUser()%></td>
<td valign="top" bgColor="#ffffff">
<a href="showsport.do?sportnoteNum=<%=sportnote.getNoteNumber() %>">
<%=sportnote.getNotePost()%>
</a>
</td>
<td valign="top" bgColor="#ffffff"><%=sportnote.getNoteTime() %></td>
<td valign="top" bgColor="#ffffff">编辑<br></td>
</tr>
<%
} %>
其中红色的那行就是问题出现的地方:
我在.jsp页面请求的时候是用:showsport.do,而我自己在struts-config.xml中却是(如下):
<action
input="/sports.jsp"
path="/showsports"
type="struts.action.ShowsportsAction" />
- HTTP Status 400 - Invalid path /showsport was requested 错误与解决方案
- HTTP Status 404 - Invalid path was requested
- HTTP Status 404 - Invalid path was requested
- Invalid path was requested
- Invalid path /xxxxxx was requested
- Struts Invalid path was requested 问题分析及解决方法
- Struts Invalid path was requested 问题分析及解决方法
- 关于struts问题Invalid path was requested /...的全面分析
- Invalid path /××× was requested 问题分析及解决方法
- 1.HTTP Status 404(The requested resource is not available)的几种解决方案
- Tomcat 设置默认访问方式 HTTP Status 404(The requested resource is not available)解决方案
- 分享HTTP Status 404(The requested resource is not available)的几种解决方案
- HTTP Status 404(The requested resource is not available)的几种解决方案
- HTTP Status 404(The requested resource is not available)的几种解决方案(转)
- velocity http请求400错误HTTP Status 400 The request sent by the client was syntactically incorrect
- http status 400,http 400,400 错误
- http status 400,http 400,400 错误
- http status 400,http 400,400 错误
- Android2.3 Ethernet Framework 移植(二)
- leftmargin 和rightmargin 调整页面边距
- AndroidPN测试(Android Push Notification)
- 数据库增加列或删除列操作
- Shell 双括号运用
- HTTP Status 400 - Invalid path /showsport was requested 错误与解决方案
- linux/init/main.c
- Android2.3 Ethernet Framework 移植(一)
- iOS开发笔记--Run Loops
- javax.servlet.ServletException: DispatchMapping[XXX] does not define a handler property
- 青春划过指尖
- 使用TCP连续传输文件的问题解决
- hdu 4293 poj 2168 dp
- 最新电子研发活动