How to post data and redirect to another page using GWT?

前端 未结 2 835
孤街浪徒
孤街浪徒 2021-01-14 14:39

When I press a button I post some data to server and there redirect to another page. I used RequestBuilder but it is waiting the response, and of course get it. And nothing

2条回答
  •  不要未来只要你来
    2021-01-14 15:19

    Add more specifications, code, this is blur. Since you are using Spring-mvc, you should be having something like this

     private static final String newPage = "index2";  //this is resolved with view resolver
     @RequestMapping(params = "action=button")
     protected String getALPLicense(final RenderRequest request,
                final RenderResponse response, final Model model) throws Exception {
     try{
     }catch{
     }
     return newPage;  //this is your new redirected page
     }
    

提交回复
热议问题