when  a servlet is called for the first time an instance of the
servlet is created in the memory.
and for every other time this same instance is used.
so all instance variables defined will be retained.

so if u want the initial value to be displayed first and then
the next value
1.u can either declare the variable in a method.
          or
2. u can give it as a initialisation parameter
and then use
String value;
doPost(req,res)
{
value=getInitParameter("parametername");

pw.println(value};
value ="somevalue";
pw.println(value};
}
_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.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

Reply via email to