Announcement Announcement Module
Collapse
No announcement yet.
Servlet Context Path Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Servlet Context Path

    I'm working with some RedirectViews and I'd like to be able to refer the the servlet context path in my views.properties file. For example:

    itemRedirect.class=org.springframework.web.servlet .view.RedirectView
    itemRedirect.url=${context.path}/user/ManageItems.form

    or something similar.


    Is this possible?

    Thanks in advance.

  • #2
    Ugh, sorry to reply to myself here.

    So I think this works.

    itemRedirect.class=org.springframework.web.servlet .view.RedirectView
    itemRedirect.url=/user/Item.form
    itemRedirect.contextRelative=true


    Sends to http://host/context/user/Item.form

    Is this the prefered way?

    Comment

    Working...
    X