> <%! String str=""; %>

This lines defines a String object outside of your method -- it's an
instance var in the container class, which is a servlet that stays loaded.
So, str maintains its value between page invocations.

Use

<% String str=""; %>

and you'll get the same thing every time you hit the page, as the String
object will be defined as a local variable in the jsp service method.

_3
M

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to