Announcement Announcement Module
Collapse
No announcement yet.
Accessing model attributes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing model attributes

    Hi.

    How can I access the web request attributes in the JSP with EL ?


    The model code is this:

    Code:
    return new ModelAndView(getSuccessView())
    		.addObject(current)
    		.addObject(info);
    What about when I use maps as the model object?

    Any eventual web resource about that ?

    Thanks!

  • #2
    it appears that there are NO request attributes set by addObject() - only the model object supplied by ModelAndView(viewname, modelname, model) AND


    Code:
    javax.servlet.forward.query_string
    javax.servlet.forward.request_uri
    javax.servlet.forward.servlet_path
    javax.servlet.forward.path_info
    javax.servlet.forward.context_path
    org.springframework.validation.BindingResult.info
    org.springframework.web.servlet.view.InternalResourceView.DISPATCHED_PATH
    org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE
    org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER
    org.springframework.web.servlet.DispatcherServlet.CONTEXT
    org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping
    info    <--- the model object
    javax.servlet.jsp.jstl.fmt.locale.request
    com.sun.enterprise.http.sessionTracker
    javax.servlet.jsp.jstl.fmt.localizationContext.request
    org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER
    Whats going on

    Comment


    • #3
      Resolved! )

      Comment

      Working...
      X