Announcement Announcement Module
Collapse
No announcement yet.
How to get controller name in jsp view file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get controller name in jsp view file

    Hi,

    I need to get controller name in view file (jsp). How to do that?

  • #2
    Use
    Code:
    getClass().getName()
    in the controller or implement the
    Code:
    BeanNameAware
    interface.

    Then add the property to the ModelAndView's ModelMap.

    Comment

    Working...
    X