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 display based on the presence or absence of a parameter:
@RequestMapping("/test.html", params = "day") public void writeSomeDay() { } @RequestMapping("/test.html", params = "!day") public void writeNoDay() { }
Hilton Campbell Jan 18 '09 at 5:22 2009-01-18 05:22
source share