This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes ServletContext and Attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletContext and Attributes" Watch "ServletContext and Attributes" New topic
Author

ServletContext and Attributes

netanel weinberg
Greenhorn

Joined: May 10, 2004
Posts: 27
Hello!

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,
netanel
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ServletContext and Attributes
 
Similar Threads
Problem using Tomcat's crossContext
Inicialize variables on axis app inicialization
Simple Question ???
Problem getting ArrayList from servlet context attribute
ServletContextListener not working