支柱。执行操作后返回同一页面
我的情况如下:
我有一个包含 JSP、Struts 和很多操作的项目。假设我有这 3 个主要组 {contacts.do、calendar.do 和notes.do},每个组都有很多操作。我有一个与所有这些都无关的操作,但由于我不知道该把它放在哪里,所以我只选择了联系人。
我的目标是在操作之后返回到我所在的页面,但由于该操作位于联系人中,因此它返回到联系人的默认操作。为此我可以做些什么吗?
谢谢。
my situation is the following:
I have a project with JSP, Struts and a lot of actions. Lets say that I have these 3 main groups {contacts.do, calendar.do and notes.do} with lot of actions in each of them. I have an action unrelated to all of them but since I didn't know where to put it I just chose contacts.
My aim is after the action, to go back to the page I was but since the action is place in contacts it returns to the default action of contacts. Is there anything I could do for this purpose?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很久以前就解决了这个问题,但忘了发布。
我所做的是将操作重定向到新的 JSP 页面。在这一页中只有这段代码:
因此,当加载页面时,它会根据我的需要返回到之前访问过的页面。
I solved this long time ago but forgot to post it.
What I did is to redirect the action to a new JSP page. In this one only this code:
So when the page is load, it goes back to the previos visited one, as I needed.