Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 72398 invoked from network); 28 Jul 2003 10:53:13 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Jul 2003 10:53:13 -0000 Received: (qmail 16817 invoked by uid 97); 28 Jul 2003 10:55:48 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 16810 invoked from network); 28 Jul 2003 10:55:47 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 28 Jul 2003 10:55:47 -0000 Received: (qmail 71016 invoked by uid 500); 28 Jul 2003 10:52:59 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 71001 invoked from network); 28 Jul 2003 10:52:59 -0000 Received: from sid.armstrong.com (204.74.20.252) by daedalus.apache.org with SMTP; 28 Jul 2003 10:52:59 -0000 Received: from joedog.org (fnord.armstrong.com [204.74.20.11]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id h6SAk7M0011093 for ; Mon, 28 Jul 2003 05:46:07 -0500 Message-ID: <3F25007A.1040705@joedog.org> Date: Mon, 28 Jul 2003 06:52:42 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Strange request.setAttribute() problem References: <64C0031C-C0C4-11D7-967F-003065B2A2AA@mac.com> In-Reply-To: <64C0031C-C0C4-11D7-967F-003065B2A2AA@mac.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is the correct behavior. In this scenario, you are operating on the request, not the session. request.getParameter --> Get stuff from the query string (or input stream if post) - a per request thing request.setAttribute --> Set an attribute in the life of this particular request -Tim Charles So wrote: > Hello, I come across a problem with TC4.1.24 and hope fellow list users > can help me... > > > > I set a variable in a servlet by calling: > > request.setAttribute("itemnumber", > Integer.valueOf(Integer.toString(itemnumber))); > > > > A JSP will then detect if this variable exists or not by: > > if ( request.getParameter("itemnumber") != null ) { > try { > itemnumber = > Integer.parseInt((String)request.getParameter("itemnumber")); > } catch (NumberFormatException ex) { > System.out.println("No"); > } > } > > > > > I have two different web browsers opened (say, one IE and one Opera), > and both eventually will come to the page containing the code above. > > The strange thing is that if the variable "itemnumber" is set via IE, > the same "itemnumber" will be seen at Opera!!!!! > > This shouldn't happen as both have different session ID, and are > completely unrelated. > > > > Who has come across this problem? How can I work around this? > > Thanks! > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org