Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing session scope attributes  RSS feed

 
Deepan Ignatius
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to use a session scoped attribute using EL in my jsp page. When I first retrieve the value which is in request scope and move it to session scope, it is having values.
But when I access the session scoped attribute it is having no values(null). I have also pasted the part of the code.



What is wrong with this?
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deepan,
From where you are taking the Attribute,"hashProducts",I mean from which HTML page/JSP?
 
Deepan Ignatius
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Passed from Servlet to this JSP

and Line no 9 returns no values inorder to create hidden variables
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post the code of your servlet here?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!