1. Once your servlet init is called, it is available to be used until
it's destroy method is called (which normally isn't until the server is
shutting down).
2. The best way to retain information between connections is using an
javax.servlet.http.HttpSession. Take a look at req.getSession()
3. Yes, that is a very good use of applets since it gives the user the
most immediate information when they are filling in a form. But, you should
re-validate the information once it gets to the servlet, since you're never
sure if the user is using an Applet Enabled Browser.
(*Chris*)
----- Original Message -----
From: Vijayanand Deshpande <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 11, 1999 2:54 AM
Subject: Re: connection to localhost odd problem
> Hi all,
> I am a new comer to "SERVLETS".
>
> Presently I am facing these problems :
>
> 1.Once my instance of servlet is instantiated, the servlet needs to take
> some further input from the Browser. Hence I want the servlet to wait for
> the input. How do I achieve it?
> 2. I want to retain some information (in the form of structures) so that
the
> next instance of the servlet can be called with these retained values. At
> present I am unable to do that because once the servlet instance expires I
> lose the data too.
> 3. Can we use applets to call the servlets, so that we can offload the
> screen validations to the applet and use the servlet merely to perform
> server side processing.
>
> Pls guide me in these regards.
>
> Thanks in advance,
>
> Vijayanand
>
> -----Original Message-----
> From: Cezar Totth <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Wednesday, August 11, 1999 2:42 PM
> Subject: Re: connection to localhost odd problem
>
>
> >Hi,
> >
> >try to use 127.0.0.1 IP address instead of "localhost". Perhaps the
system
> >needs to convert "localhost" to its address, for that reason it needs
> >to connect to the domain name server, wich is at your ISP thus the system
> >dials him.
> >
> >Just a guess..
> >
> >Bye
> >Cezar
> >---------------------------------------------------------
> >
> >Celestial navigation is based on the premise that the Earth is the
> >center of the universe. The premise is wrong, but the navigation
> >works. An incorrect model can be a useful tool.
> > -- Kelvin Throop III
> >
> >On Tue, 10 Aug 1999, Message UK wrote:
> >
> >> I'm using JSDK 2.1 and when I run servlets I have to connect to the
> internet
> >> in order to be able to establish a connection to my localhost...it's
odd.
> I
> >> can immediately disconnect after the connection is made to my ISP, and
> the
> >> localhost server continues to work. I think it has something to do with
> >> "going online" - i.e. working offline in IE5 equals no server even if
> >> local??
> >>
> >> Any ideas??
> >> Thanks.
> >>
> >>
> >> ______________________________________________________
> >> Get Your Private, Free Email at http://www.hotmail.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
> >>
> >
>
>___________________________________________________________________________
> >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
>
___________________________________________________________________________
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