Why do some people think that marking a post as "URGENT" will get them any more attention than a more informative title? I'm really curious about this.
Good question Bill . Also you might want to change your name to match the one and only rule and it can be found in JavaRanches naming policy. If you store objects in Cookies (which I don't recommend) I believe they can only be of size 32K. Store them in the HttpSession.. Cheers, Ryan
SCJP 1.4, SCWCD
Java: The power, elegance, and simplicity of a hand grenade
Thank you Ryan . OK - now to make it official k1ndkam, Please change your name to be compliant with JavaRanch's naming policy. It should not be obviously fictitious. Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name. You can change your name: here. Thanks, Cindy
"JavaRanch, where the deer and the Certified play" - David O'Meara
Say that again, If u store anything in the session and servlet context, its the same thing. I do not think so. All the objects that are stored in the servlet context will be available to the resources in that servlet context and not to resources outside that while as the session variable will be available to all the applications irrespective of their servlet contexts. Is that right. ???
Author and all-around good cowpoke
Joined: Mar 22, 2000
Briefly - NO! Sessions are only shared within a "web application" which equates to a servlet context. The servlet API originally had some methods that were more liberal but they got removed due to security concerns. The original post was not clear on the scope that the objects were to be visible in. You have several choices, the whole application with ServletContext, the user's session with HttpSession and the individual request with objects attached to the ServletRequest and probably some more I have not thought of Bill