Struts - 我的动作被调用两次
我正在使用 jsp include,如下所示:
<jsp:include page="/citybest.html">
<jsp:param value="shopping" name="action"/>
</jsp:include>
这调用了我的操作类的“购物”方法。但我的问题是这个方法被调用了两次。如果我删除此包含调用,则根本不会调用它。我检查了 eclipse 的调试模式。有人知道这里的情况吗?
I'm using jsp include like this:
<jsp:include page="/citybest.html">
<jsp:param value="shopping" name="action"/>
</jsp:include>
This calls a method 'shopping' method of my action class. But my problem is that this method is called twice. If I remove this include call it is not called at all. I checked in the debug mode of ecilipse. Do any one have any idea on what's the case here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有一个表单,其中提交按钮还调用包含 form.submit() 的方法,那么这将导致表单在某些浏览器中提交两次。否则您需要提供更多信息。
if you have a form where the submit button also calls a method that includes form.submit() then this will cause the form to be submitted twice in some browsers. Otherwise you'll need to provide more information.