|
|
|
[
Permlink
| « Hide
]
Matt Raible - 17/Dec/07 03:41 PM
While I like the annotation-based features added to Spring MVC, I'm not convinced they're better than extending classes (SimpleFormController and implementing Controller). Also, does putting URLs in Java code make sense? I think it's best to discuss this on the user list and see what people think.
Wouldn't it make sense to use a mixed approach to get the benefit of annotations while keeping URL mappings in a single location, like the one proposed here:
http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/ ? A controller that has similar BaseFormController functionalities. This controller is for Spring 2.5 annotated MVC.
An example of class extending BaseController.
Sorry this looks like Spam. You can delete all my comments above. I thought when I comment on each file the comments would appear next to the file. Sorry about this.
Anyway I created a BaseController for Spring Annotated MVC. I also provided an example class using this BaseController. Sorry for not providing the other classes. But the other classes are DTOs and nothing much. I hope these two classes could be helpful. Regards Donny |
|||||||||||||||||||||||||||||||||||||||||||||