Hi,
There is a DDJ article that touched upon the exact method of
construction of servlets based on the tags. Is there any explanation
somewhere ?
>The solution given here will definately work but probably we don't need to
>do so much for just a variable.
>All the variables defined in the <%! %> tag become the private member
>variables of the servlet so they are shared accross all the request
threads.
>But the variables defined with in the service method of the servlet are not
>shared between threads as this method is executed a fresh for every
request.
>All the variables defined within the <% %> tags in the JSP become the
member
>variables of the service method and you will always get value as 0 for
every
>request. Ofcourse , if you want the value to be persistant over a session ,
you will have to put it in a session variable. But while extracting it back
>from the session variable , be careful to extract it into a member variable
>of the service method of the servlet.
bye,
Mohan
===========================================================================
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