错误 400:请求 [/editRecordsAction] 不包含名为的处理程序参数

发布于 2024-09-11 10:07:33 字数 1064 浏览 2 评论 0原文

我正在创建一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

歌入人心 2024-09-18 10:07:33

您的问题在这里找到”

<html:form action="/editRecordsAction?parameter=editSupViewAction">

您忘记将 .do(或您拥有的任何 servlet 映射)添加到您的操作中。

解决方案如下:

<html:form action="/editRecordsAction.do?parameter=editSupViewAction">

Your problem is found here"

<html:form action="/editRecordsAction?parameter=editSupViewAction">

You forgot to add the .do (or whatever servlet mapping you have) to your action.

Here's the solution:

<html:form action="/editRecordsAction.do?parameter=editSupViewAction">
路还长,别太狂 2024-09-18 10:07:33

错误 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,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文