I’ve got a Spring Roo-application (which uses Spring MVC for the scaffolded views) and I would like to execute a static method upon accessing a specific URL.
How can I pull this off?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How does it have to do anything with Spring Roo. I thought it was only applicable at Compile Time and not at runtime?
In Spring MVC you can create a @Controller and then give the method @RequestMapping(value=”/url”, method = RequestMethod.GET) .
Check out http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html for more reference.