Return to the same view using ModelAndview in Spring MVC framework

Posted by ria on Stack Overflow See other posts from Stack Overflow or by ria
Published on 2010-06-09T07:03:14Z Indexed on 2010/06/09 7:12 UTC
Read the original article Hit count: 168

Filed under:
|
|

I have a page with a link. On clicking the link a page opens up in a separate window. This new page has a form. On submitting this form, some operation takes place at the server. The result of which needs to be redirected to the same page. However after the operation on using the following:

return new ModelAndView("newUser");
//This view "newUser" actually maps to the popped up window.

A similar new window again pops up and the message gets displayed on this new page.

How to go about this?

© Stack Overflow or respective owner

Related posts about java

Related posts about spring