错误 400:请求 [/editRecordsAction] 不包含名为的处理程序参数
我正在创建一个 struts 应用程序,并且正在使用调度操作。这不久前还有效,现在已经停止并阻碍了我。这是一页的操作映射和操作请求。它在所有使用调度操作的页面上给我一个错误。我收到这些错误。
错误 400:Request[/editRecordsAction] 不包含名为
console 错误的
处理程序参数[7/28/10 8:28:38:658 CDT] 0000001d DispatchActio E org.apache.struts.actions.DispatchAction 未指定 Request[/editRecordsAction] 确实不包含名为
<action name="editRecords" path="/editRecordsAction" type="ccreports.actions.editRecordsAction"
parameter="parameter">
<forward name="editRepViewFwd" path="jsps/RepViewEdit.jsp"></forward>
<forward name="editSupViewFwd" path="jsps/SupViewEdit.jsp"></forward>
<forward name="noViewActionFwd" path="jsps/NoViewSelect.jsp"></forward>
<forward name="delRepFwd" path="jsps/RepViewEdit.jsp"></forward>
<forward name="delSupFwd" path="jsps/SupViewEdit.jsp"></forward>
<forward name="delNoFwd" path="jsps/NoViewSelect.jsp"></forward>
</action>
<html:form action="/editRecordsAction?parameter=editSupViewAction">
感谢您的帮助的处理程序参数。
I'm creating a struts app and I am using an dispatch action. This was working a while ago and now has stopped and is holding me up. here is the the action mapping and the action request for one page. It give mes an error on all the pages that use the dispatch action. I get these errors.
Error 400: Request[/editRecordsAction] does not contain handler parameter named
console error
[7/28/10 8:28:38:658 CDT] 0000001d DispatchActio E org.apache.struts.actions.DispatchAction unspecified Request[/editRecordsAction] does not contain handler parameter named
<action name="editRecords" path="/editRecordsAction" type="ccreports.actions.editRecordsAction"
parameter="parameter">
<forward name="editRepViewFwd" path="jsps/RepViewEdit.jsp"></forward>
<forward name="editSupViewFwd" path="jsps/SupViewEdit.jsp"></forward>
<forward name="noViewActionFwd" path="jsps/NoViewSelect.jsp"></forward>
<forward name="delRepFwd" path="jsps/RepViewEdit.jsp"></forward>
<forward name="delSupFwd" path="jsps/SupViewEdit.jsp"></forward>
<forward name="delNoFwd" path="jsps/NoViewSelect.jsp"></forward>
</action>
<html:form action="/editRecordsAction?parameter=editSupViewAction">
Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的问题在这里找到”
您忘记将 .do(或您拥有的任何 servlet 映射)添加到您的操作中。
解决方案如下:
Your problem is found here"
You forgot to add the .do (or whatever servlet mapping you have) to your action.
Here's the solution:
错误 400: Request[/editRecordsAction] 不包含名
为此错误消息的处理程序参数,让我认为链接应该如下所示:
/editRecordsAction.do?parameter=OneOfYourForwardNames
调度操作需要传入 httprequest 参数,以及该参数的名称必需参数是您在 struts 映射中键入的名称。在你的情况下“参数”。我最好的猜测是,表单的操作没有提供 editRecordsAction 所需的内容...
希望这会有所帮助,
Error 400: Request[/editRecordsAction] does not contain handler parameter named
this error message lets me think the link should have looked like:
/editRecordsAction.do?parameter=OneOfYourForwardNames
dispatch actions require a httprequest parameter be passed in, and the name of the required parameter is the name you type in your struts mapping. in your case 'parameter'. the form's action is not giving editRecordsAction what it needs is my best guess...
hope this helps,