I have changed like this: pageContext.getRequest().setAttribute("InQry", qry);
and retrieve it in the servlet like this: inQry = (String)request.getAttribute("InQry"); But when using request attributes, inQry will be null when retrieved????? On 7/26/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: > > What do you suggest to overcome this problem? > > On 7/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > > Subject: Re: Bean and Servlet > > > > > > I will tell you the procedure; At each time the user clickes > > > the first page in the site, a random numbers will be generated > > > and stored in the session. > > > > You're missing the point. The user may click multiple times before the > > first request is even received by the webapp, or the browser may simply > > fire off multiple parallel requests, or the user may open multiple tabs > > for the same web site. All of the above will result in multiple > > concurrent requests occurring for the same session. Does your logic > > handle that properly? The code snippet you posted does not. > > > > - Chuck > > > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > > > > MATERIAL and is thus for use only by the intended recipient. If you > > received this in error, please contact the sender and delete the e-mail > > and its attachments from all computers. > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >