I am new to this forum and have searched for my problem and although similar problems are mentioned but not the one that I am looking for. So here goes.
I have a payment popup in my application that can be called from any page of application and once user submits his payment details on popup, the browser redirects to paypal site and do some checks and return to my application after user confirmation.
Now in this callback method I need to forward the request to the original page which called the popup.
So now I have the app url in my callback method but can't seem to forward the request to it.
Example like below:
mv = new ModelAndView("forward:/secure/music/index");
OR
return "forward:/secure/music/index";
If I replace forward: with redirect: it works fine but I need to forward it, not redirect it (and hence initiate another request).
/secure/music/indexis the RequestMapping of the other controller or is it a view to be resolved as something like/WEB-INF/view/secure/music/index.jsp?