• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

New session upon page redirect?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I use a redirect="true" directive in my struts configuration file, I find that the JSP that gets control is not able to access the current session attributes through request.getSession().getAttribute(). The session.getId() is observed to be different just before the redirect and just after the target page gets control.

I dont understand this - redirect="true" causes a fresh request to be raised but surely the session will remain the same? Am I doing something wrong here?

BTW, the code works properly in JDev.

I am using Oracle AS 10.1.3 and JDev of the same version.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic