Announcement Announcement Module
Collapse
No announcement yet.
how to handle the controller with different methods each handling different parameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to handle the controller with different methods each handling different parameter

    hi .. i have a requirement that my request url is same always same but with different parameters(some are hidden) ....so depending on each parameter i have to handle it in a differ request method

    how can i achieve this?

    Thanks
    Suresh

  • #2
    The quickly way is to examine the request. For example:
    Code:
    String action= ServletRequestUtils.getStringParameter(request,"action",null);
     //if action equals "action 1", process logic for "action 1".
    Hope this will help.

    Comment

    Working...
    X