This seems similar to a problem that I had when everything seemed to be initialized on
every call. My problem was that my session timeout was set to 0 (this happens to be
the default in J2EE RI). So, I was losing my session between clicks. A solution is
to set the timeout to -1 (never) or some more reasonable value.
- Joe
On Sat, 22 Jan 2000 09:34:50 +0530, Ashwani Kalra <[EMAIL PROTECTED]> wrote:
>Hi all ,
>Can any body provide some information for the following situation ?
>
>Since JSP page is compiled into the servlet class that has only one
>instance(normally) and initilized only once. All the variables declared
>using <%! %> tags become the part of the member variables of the servlet
>class(i.e. page implementation class).
>
>Now consider follwing scenario.
>I have declared one int variable and initilized to 0. My first http request
>to this variable sets to some other value say 100.Now my question is that if
>i make another request to same page and display this variable . What will be
>ouptput 0 or 100.(looks that it should be 100 but this will create problem
>for me. because my second request is expecting 0 value to be used in
>calculation.)
>can any Body suggest a solution for this so that each page will have its own
>value.
>eagerly waiting for reply!!!!!!!!
>
>Thanks and Regds
>Ashwani
>
>
>
>
>Visit http://www.niit.com for eCommerce Solutions.
>
> ==========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html