Put the value in ServletContext(if using srvlets) or put in application
object to access this value later.

Steps:
1. Call the method getServletContext on the current page.. that is
sending the request.. it will return u back the object of
ServletContext.

2. There are methods available in ServletContext interface
(setAttribute(value)) that will solve ur purpose.

Call the method sv.setAttribute(value) 

And retrieve the values by methods getAttribute().

Try this.. as I'm not having any code ready with me...//
it will work. :)

-----Original Message-----
From: karthik s [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 18, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: doubt in sessionssss

hi all,
  Is there any way to access the value of other session variables.
For example take that there are two users logged in. Im using sessions
to
get the user names of two users. If I want to access who is the other
user
logged in from any session, how can I do it. Can any one help me plzzzz.
If
this is not possible is there any othe way to do it.
rgds,
karthik


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


*----------
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to