Since I was not clear in my earlier mail ...
> 1. How do I expire a servlet after the view has
> changed?
Let's assume I click on a button that changes the page
that is being displayed. As of now, when I click to go
to the previous page, I am able to see the servlet
like it was before. What should I do to make the
browser display a "Page has expired" error?
>> 2. Can I make a servlet url that does not contain
>> the string "Servlet" in it (ie) something like
>> "http://localhost:8080/myProg/first" instead of
>> "http://localhost:8080/myProg/servlet/first"?
How do I make myProg as the context?
> 3. How do I append html code to a servlet that was
> displayed in the previous view?
As I asked in q1, if I click to see the previous page
in the browser I am able to see the page. Now what
should I do if I wanted to add some extra HTML code to
that page?
> Look at the method HttpServletRequest.getSession().
Let's assume a server that is serving 3 or more
clients and that at a particular time 2 clients are
invoking the same page. Now a session object is going
to be created for each user. My servlet creates a
cookie that contains the sessionID of each session.
The cookies are set to be returned to the server
whenever the client issues a request to the server.
Now assume that the 2 clients are going to move to
different pages. When I call getSession() for client2,
will I get the session object of the client2 or are
there any chances that I will get the session object
of client1 instead? If the latter is likely, what
should I do to get the session object of the client2?
I hope I was clear enough.
Bye,
Arun.
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.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