提交问题(400错误)

heng7421 2010-03-09 05:10:36
window.location.href="dataCompareResultsDetails_action.do?method=findData&s1="+$("s_1").value+"&s2"+$("s_2").value;

我这样提交到action为什么会报错

HTTP Status 400 - Invalid path /Web/front/DeptDataThan/dataCompareResultsDetails_action was requested

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

type Status report

message Invalid path /Web/front/DeptDataThan/dataCompareResultsDetails_action was requested

description The request sent by the client was syntactically incorrect (Invalid path /Web/front/DeptDataThan/dataCompareResultsDetails_action was requested).



另外我写了from来作提交一样报了400
...全文
153 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
酱油Coder 2010-03-09
  • 打赏
  • 举报
回复
window.location.href="dataCompareResultsDetails_action.do?method=findData&s1="+$("s_1").value+"&s2"+$("s_2").value;

"&s2="
这是不是少个“=”
heng7421 2010-03-09
  • 打赏
  • 举报
回复
<action
parameter="method"
path="/dataCompareResultsDetails_action"
type="front.dataCompare.action.DataCompareResultsDetails_Action" />
</action-mappings>

一样的。
xzz212 2010-03-09
  • 打赏
  • 举报
回复
路径问题,查看在配置文件中的名字 与链接的是否一致
heng7421 2010-03-09
  • 打赏
  • 举报
回复
这个项目里面值用到了struts,(项目是N年前的)
郁闷郁闷...

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧