PDA

View Full Version : HTTP Post with Spring MVC


craig.schneider
Jul 16th, 2007, 11:28 AM
I want to use a Spring controller to Post data from my web application to a separate web application on the same server. Is there any way to do this easily via Spring MVC? My current approach is to use an AbstractController, and in handleRequestInternal I create the HttpURLConnection myself and post the data that I need to. I return null for the ModelAndView.

This class acts as a wrapper, i.e. it is not triggered by a form submit, but rather from a user clicking a link. I have to wrap the request and post data outside of my application. Is there any better way of doing this via Spring MVC?