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?
** when u invoke a Servlet from the browser, the Servlet gets loaded into
server's memory and its doGet, doPost or other methods are called. After
this moment if some client(same or different) requests for that Servlet,
its picked from the already loaded instance. So only for the 1st invocation
of the Servlet its loaded into server's memory. But the doGet, doPost or
other methods get called for every client request.
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.
** u have to do session tracking in ur Servlets for this. u must create
HttpSession object in ur doGet or doPost methods to manage sessions. u can
also use cookies or url renaming features to maintain state if u don,t want
to use Servlet session tracking API.
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.
** yes , u can perform Applet to Servlet communication also. For this u'll
have to work out the details.
IMHO I'll advice u to read some good book(e.g by Jason Hunter) or go
through Javasoft's tutorial.
Pls guide me in these regards.
Thanks in advance, Vijayanand
-mukul
___________________________________________________________________________
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