开发者

Spring MVC Controller for non-submit actions

开发者 https://www.devze.com 2023-03-16 09:02 出处:网络
We have 2 spring modules, I have no control on module1, click action on a link in module1 redirects to URL in module2 and also sends ur开发者_开发知识库l query strings, So capturing query strings proc

We have 2 spring modules, I have no control on module1, click action on a link in module1 redirects to URL in module2 and also sends ur开发者_开发知识库l query strings, So capturing query strings process B.L and display results back in the same page. I don't have a submit action at all, But I see onSubmit() examples in spring mvc. How to handle non-submit actions? i appreciate your help. thank you


By "non-submit actions", do you mean using GET HTTP method ?

If so, then with a basic @RequestMapping (or more restrictively @RequestMapping(method= RequestMethod.GET)) annotated method in a @Controller, you can handle such actions... or are you using pre-2.5 versions of spring-mvc ?

0

精彩评论

暂无评论...
验证码 换一张
取 消