Jon Baer wrote:
>
> Thats what's confusing to me is that I just realized (after coding the servlet)
> that the getLastAccessedTime() would be reflective if a *single* user is
> accessing this servlet, but it would have to be reflective of each user.
>
> What I need to do is access a servlet MyServlet?Command=New, which when
> accessed for the first time, would save the time, then when its accessed a
> second time go MyServlet?Command=Old and the output should be the time that has
> passed in seconds.
To share a value between multiple users you can not use the session;
the session is per client. Take a look at the ServletContext attribute
methods instead. If you save your time info there, using a clever naming
convention, you can get it the second time anyone calls your servlet.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html