PDA

View Full Version : newbie



philipj
Mar 7th, 2009, 04:53 AM
Hi
I am new to Spring MVC and Spring, I was doing with Struts, now I am moving to Spring, I could not undrestand lot of things , when I had gone through the tutorial and smaples from Spring. The tuorial says your controller can implement Controller or extend SimpleformController. when we have to extend or implement? the Petclinic sample shows controller using annotaions for request handling and form is processing the request like (at)RequestMapping(method = RequestMethod.POST), my understanding is form is used to collect the data and set it with Model, and the CliniController hard coded liek this (at)RequestMapping("/vets.do"), is it better to do all controlle mappings put in the servlet.xml file so it is easy to understand maintain. This sample is not using Form controller or command object,
Could somebody tell me where I can find the scenarios where to use which way to do things. or give an answer ,please.
regrds
Philip