Announcement Announcement Module
Collapse
No announcement yet.
Calling an action from within an action? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling an action from within an action?

    I have a controller action that works fine.

    I want to create an 'alias' url that will just call my original action.

    How can I do this?

    Code:
    @RequestMapping("/original/url")
    ...
    ..
    
    
    @RequestMapping("/some/other/url")
    So if you go to /some/other/url, it should just call the method for /original/url.

    Performance matters, and I don't want any sort of redirect or anything. Just simply delegating to the other method.

  • #2
    Hi,

    How about returning 'forward:/original/url" from the second method.

    Regards,
    Prasad P. Khandekar

    Comment

    Working...
    X