Java – returns a different reference page from the edit page

I use spring MVC (not webflow) I have a page setup for editing specific entities This page can be called from many others I'm looking for best practices on how to return to the reference page after the edit page is published That is, what is the best way to determine which page is called an edit page and return to that page

I have my own ideas, but I believe many of you have dealt with this problem before and may have a better solution

Solution

If you are publishing to an edit page, you can add values to the published data that identifies the source page This technique will allow you to determine the correct view to return to

I will do this instead of redirecting to the reference page, because it allows you to make any settings required by the source page before sending the user back to the source page

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>