tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammed Zabin" <jotna...@gmail.com>
Subject Re: Bean and Servlet
Date Thu, 26 Jul 2007 09:29:00 GMT
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 <jotnarta@gmail.com> wrote:
>
> What do you suggest to overcome this problem?
>
> On 7/25/07, Caldarale, Charles R <Chuck.Caldarale@unisys.com> wrote:
> >
> > > From: Mohammed Zabin [mailto:jotnarta@gmail.com]
> > > 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: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message