Follow by Email

Wednesday, October 23, 2013

Spring forward to another controller

I use the following approach in my spring applicaitons whenever I need to forward the request from one controller to another controller


public String execute(Model model){
       //Do Something
      return "forward:/URLNO1"
   } else {
      //Do Something
      return "forward:/URLNO2"


As recomended in the below stackoverflow thread

No comments:

Post a Comment