0
votes

I already integrated GWT with Spring MVC by implementing the Controller which is called by DispatcherServlet using SimpleUrlHandlerMapping.

public class GwtRpcController extends RemoteServiceServlet implements Controller,
        ServletContextAware {
        @Override
    public ModelAndView handleRequest(HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        super.doPost(request, response);
        return null;
    }
}

I want to use the new approach with the annotation @Controller, like below:

@Controller
public class GwtRpcController extends RemoteServiceServlet implements
        ServletContextAware {

}

In this case there will be no handleRequest method, where should I do super.doPost(request, response); ?

1

1 Answers

0
votes

See annotated web mvc controllers in spring 2.5

You should not to do doPost/doGet manually, just define controller method with corresponding parameters, return value and annonations for url mapping.