This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletContext and Attributes

netanel weinberg
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i'm tyring to pass to the ServletContext and a object i'm using and used:

and to i'm checked it can found in the ServletContext.getAttributeNames().
now when i'm trying in my jsp to reterieve the object

but i'm getting and object but with other address with null values and even when i'm trying to print out the address of the object from the
i'm getting the same address as the address of the object i got in the jsp page and not the address of the object i have put in the setAttribute.
more over i'm have tried to print all the AttributesNames from the ServletContext and i've got the same list as i've got in the servlet when tried to print the AttributesNames from the ServletContext, what can be the problem???

10x ahead,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic