Announcement Announcement Module
Collapse
No announcement yet.
Accessing path info using freemarker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing path info using freemarker

    Hi,

    I'm trying to access the url path that is entered in the browser through freemarker and I'm not having any luck. Looping over the available request parameters I get:

    javax.servlet.include.request_uri
    javax.servlet.include.context_path
    javax.servlet.include.servlet_path
    clickstream
    lazyLoadingFilter.FILTERED
    javax.servlet.jsp.jstl.fmt.request.charset
    encodingFilter.FILTERED
    .freemarker.Request
    org.springframework.web.servlet.DispatcherServlet. THEME_SOURCE
    org.springframework.web.servlet.DispatcherServlet. THEME_RESOLVER
    springMacroRequestContext
    rc
    __spring_security_session_fixation_filter_applied
    rootCategories
    __spring_security_filterSecurityInterceptor_filter Applied
    __spring_security_session_integration_filter_appli ed
    org.springframework.web.context.request.RequestCon textListener.REQUEST_ATTRIBUTES
    __sitemesh__page
    org.springframework.web.servlet.DispatcherServlet. CONTEXT
    __sitemesh__using_stream
    localeFilter.FILTERED
    org.springframework.web.servlet.HandlerMapping.pat hWithinHandlerMapping
    .freemarker.RequestParameters
    .freemarker.Session
    pageTitle
    _clickstream_filter_applied
    __sitemesh__filterapplied
    org.springframework.web.servlet.DispatcherServlet. LOCALE_RESOLVER

    but when I output request_uri, I get the path to the ftl file in stead of the actual URL. Trying to access the .freemarker.Request, results in unexpected errors. Any ideas on how to access the actual url within freemarker?

    Cheers,

    Marc
Working...
X