• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Removing Request Attribute in Spring frame work

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am using following code to print the request attributes on a jsp scriplet.




And here is the list of attribute it prints along with the custom added attributes as {key=values} format

javax.servlet.forward.context_path=,
javax.servlet.forward.query_string="request query string",
javax.servlet.forward.request_uri=/path/action.do,
javax.servlet.forward.servlet_path=/path/action.do,
javax.servlet.jsp.jstl.fmt.locale.request=en_US,
javax.servlet.jsp.jstl.fmt.localizationContext.request=org.springframework.web.servlet.support.JstlUtils$SpringLocalizationContext@44ad78a2,
lUrl=http://localhost:8888,
localStorageCall=true,
org.springframework.validation.BindingResult.accountDetails=org.springframework.validation.BeanPropertyBindingResult: 0 errors,
org.springframework.web.servlet.DispatcherServlet.CONTEXT=WebApplicationContext for namespace 'dispatch-servlet': startup date [Tue May 15 08:42:17 UTC 2012]; parent: Root WebApplicationContext, org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER=org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@2b3a0934, org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER=org.springframework.web.servlet.theme.FixedThemeResolver@46ad89ec, org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE=WebApplicationContext for namespace 'dispatch-servlet': startup date [Tue May 15 08:42:17 UTC 2012]; parent: Root WebApplicationContext, org.springframework.web.servlet.HandlerMapping.bestMatchingPattern=/path/action.do,
org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping=/path/action.do,
org.springframework.web.servlet.HandlerMapping.uriTemplateVariables={}


Is there any way of configuring spring framework to not include these attributes in the requests.

Thanks









 
reply
    Bookmark Topic Watch Topic
  • New Topic