> 1. How do I expire a servlet after the view has
> changed?

I do not understand what are you trying to say here. Can you pl. explain.


> 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"?

Yes you can. You can create a context of your own. In the above urls
*myProg* can be the context.


> 3. How do I append html code to a servlet that was
> displayed in the previous view?

Can you pl. explain what you are trying to achieve.



> 4. I have a servlet that validates a user's login. Now
> after the user has submitted the login and the
> password and a welcome screen is displayed to the user
> if the combination is correct. I created a cookie in
> the doGet() method which contains the session's ID.
> This cookie is set to be returned by the browser
> during every page request. Now when the user proceeds
> to another page, how do I get this user's session
> object using the sessionID stored in the returned
> cookie?

Look at the method HttpServletRequest.getSession().

Regds,
Gokul

>
> Thanks and bye,
> Arun Jayaprakash.

___________________________________________________________________________
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

Reply via email to