Spring annotation mvc - request and response
        Posted  
        
            by Eqbal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Eqbal
        
        
        
        Published on 2010-05-17T22:52:59Z
        Indexed on 
            2010/05/17
            23:10 UTC
        
        
        Read the original article
        Hit count: 344
        
I am using annotation based mvc and I am trying to get access to request and response objects using this method declaration in my controller.
@RequestMapping(method=RequestMethod.GET)
public String checkRequest(Model model, HttpServletRequest request, HttpServletResponse response)
But I get an error saying GET method not supported.
I need the request and response to pass it to another API call.
© Stack Overflow or respective owner