To send some values/objects with reuest objects we will you attributes.
> ----------
> From: Chanoch Wiggers[SMTP:ChanochW@w...]
> Reply To: Servlets
> Sent: Thursday, September 06, 2001 3:43 PM
> To: Servlets
> Subject: [servlets] Re: Repeatition of Servlet provcessing
>
> in which case you might have to use attributes.
>
> chanoch
>
> > -----Original Message-----
> > From: Balachandar J [mailto:zenithbala@h...]
> > Sent: 06 September 2001 04:16
> > To: Servlets
> > Cc: ChanochW@w...
> > Subject: [servlets] Re: Repeatition of Servlet provcessing
> >
> >
> > but the HttpServletRequest object does not have a
> > setParameter(name,value)
> > method????
> >
> > bala
> >
> > >Subject: Re: servlets digest: August 31, 2001
> > >From: Chanoch Wiggers <ChanochW@w...>
> > >Date: Wed, 5 Sep 2001 12:01:38 +0100
> > >X-Message-Number: 1
> > >
> > >but what you've done is added attributes to the request and
> > then you are
> > >retrieving parameters from your that request. You should either add
> > >parameters to the request leave the second servlet unchanged
> > or change the
> > >code in the first servlet to:
> > >
> > > public class DispatchTest extends HttpServlet {
> > >
> > > public void doPost(HttpServletRequest req,
> > HttpServletResponse res)
> > >throws
> > > IOException, ServletException {
> > > doGet(req,res);
> > > }
> > >
> > > public void doGet(HttpServletRequest req,
> > > HttpServletResponse res) throws
> > > IOException, ServletException {
> > >
> > > RequestDispatcher dispatcher
> > > getServletContext().getRequestDispatcher("ReceiverTest");
> > > String a = "";
> > > a = req.getParameter("name");
> > >
> > > res.setContentType("text/html");
> > >
> > > if(a.equalsIgnoreCase("bala")) {
> > >
> > > if(dispatcher != null) {
> > > req.setParameter("age","25");
> > > req.setParameter("edu","UG");
> > > dispatcher.forward(req, res);
> > >
> > >etc etc
> > >
> > >-------------------------------------------------------------
> > ---------
> > >
> > >Subject: Re: Repeatition of Servlet provcessing
> > >From: Chanoch Wiggers <ChanochW@w...>
> > >Date: Wed, 5 Sep 2001 12:02:00 +0100
> > >X-Message-Number: 2
> > >
> > >can we see some code please?
> > >
> > > > -----Original Message-----
> > > > From: Subha Pichai [mailto:subhashinip@y...]
> > > > Sent: 30 August 2001 23:18
> > > > To: Servlets
> > > > Subject: [servlets] Re: Repeatition of Servlet provcessing
> > > >
> > > >
> > > > Hi Ajay,
> > > > Did you fix this problem? I'm having the same problem
> > now. Saw your
> > > > discussion thread in wrox.com website. Could you tell me how
> > > > you fixed
> > > > this error?
> > > >
> > > > Thanks,
> > > > Subha
> > > >
> > > > > Hi,
> > > > > I am calling a servlet from another servlet. I notice that
> > > > the servlet I
> > > > > am calling is processed twice i.e. the "doget" method is
> > > > executing twice.
> > > > > Can anybody tell me why is this happening or how can I avoid it.
> > > > >
> > > > > Regards,
> > > > > Ajay
>