• 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

pass data by httpSession.setAttribute and httpSession.getAttribute but do not get the same value

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I try to pass data from Action.java to jsp page by httpSession.setAttribute and httpSession.getAttribute.
I do not get the same value when casting MyObj.
Please help.



MyAction.java



Log file:
2014-04-14 13:24:36,420 [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' DEBUG xxxx.web.test.actions.MyAction - owner false activity true
2014-04-14 13:24:36,420 [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' DEBUG xxxx.web.test.actions.MyAction - myObj2 Owner false Activity false
2
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at line 11 in MyAction.java.
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also line 20... looks like the "Copy, Paste, Forget to Edit" antipattern applied there!
 
reply
    Bookmark Topic Watch Topic
  • New Topic