tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles So <charles...@mac.com>
Subject Re: Strange request.setAttribute() problem
Date Mon, 28 Jul 2003 17:57:15 GMT
Thx Mike!!! I got the problem fixed!!!

Thx!


On Tuesday, July 29, 2003, at 01:22  AM, Mike Curwen wrote:

> <%!
>      private int itemnumber = -1;
> %>
>
> Using a ! makes it scoped globally to all requests. If you check the
> source file of your JSP you'll see it's declared outside the service
> method.
>
> That's why different browsers will 'appear' as though they are mixing 
> up
> things.  It's because your variable is available on basically, an
> application level.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message