Spring - Annotation Based Controller - RequestMapping based on query string?

Yes, you can use the params element: @RequestMapping("/test. Html", params = "day=monday") public void writeMonday() { } @RequestMapping("/test. Html", params = "day=tuesday") public void writeTuesday() { } You can even map based on the presence or absence of a param: @RequestMapping("/test.

Html", params = "day") public void writeSomeDay() { } @RequestMapping("/test. Html", params = "! Day") public void writeNoDay() { }.

2 This showed syntax error for me(on Spring 3), but the following worked. @RequestMapping(value="/test. Html", params = "day=monday") – pMan Aug 11 '10 at 10:08 All examples worked for me on Spring 3.

– Bobo Mar 14 at 19:45.

Or you could do something like: @RequestMapping("/test. Html") public void writeSomeDay(@RequestParam String day) { // code to handle "day" comes here... }.

Gu3st Thanx. Really worked like a charm! – yakup May 10 at 18:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions