Announcement Announcement Module
Collapse
No announcement yet.
how to get the name of the requested page ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to get the name of the requested page ?

    while inside a controller

    i need to know
    which url called this page

    or if the page called itself ..

    how will i get that information ??

    thanks

  • #2
    HttpServletRequest has a method getRequestURL()which returns the URL the client used to make the request. Does that help?

    The Spring Contollers make the request available as a parameter to most of their methods.

    Comment


    • #3
      Forms with multiple submits

      org.springframework.web.servlet.support.RequestCon text has useful methods to retrieve this kind of information.

      Comment

      Working...
      X