Use a bean to store you information and make the bean have "session" scope.
--- Margaret Fisk <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a two part question and either answer should help me.
>
> I have a Java Servlet that uses static variables to store information used
> by several of the methods. It is called in a dynamic way by another Java
> Servlet, i.e. Sqlresult Report = new Sqlresult() where Sqlresult is my first
> servlet)
>
> The second Java Servlet is called by a JSP file using a tag library.
>
> Basically, the JSP is retaining data from the previous query even if the
> underlying database changes significantly. To make it look again, I have to
> stop and start the Tomcat 3.2 server...which is not really feasible.
>
> My questions are:
>
> How do you get the JSP to purge its servlet variables after displaying the
> information?
>
> or
>
> Any simple suggestions on how to make the results of one method available to
> several methods without updating static variables so the information won't
> be retained?
>
>
> Thanks in advance,
> Margaret
>
> ___________________________________________________________________________
> 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
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.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