If you really want to use getParameter between servlets, try appending your parameter(
name, value pairs) to the URL that you use to do the redirect, then, use getParameter()
in the redirected page.

I guess the problem is where is the convenience way to put your parameters at first
place.If JSP have a convenient way to do it, servlet should have something similar.  I
will try to find out if there is something out there.

Thanks for your reply.

>
> Is it compulsory to retrive the parameter by getAttribute only (in redirected page).
> Can we use the normal way getParameter() in the redirected page?
>
> Liu wrote:
>
> > Try request.setAttribute("name","value"); in your sending page,
> > Then try request.getAttribute("name"); in your redirected page.
> >
> > yi
> >
> > > Hi,
> > >
> > > I am having a typical requirement- one JSP recieves form data,
> > > before passing control to another servlet, I just want to add new
> > > parameter to the request.
> > >         reponse.sendRedirect(request, response);
> > >
> > > Is it possible to change the parameters or add new parameters before
> > > redirecting to another servlet using sendRirect().
> > >
> > > Thanks in advance.
> > >
> > > Sushil
> > >
> > > ===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> > --
> >
> > Best Regards,
> >
> > Yi Liu
> > Java Programmer
> >
> > --
> >
> > Invisible.Ink Corporation
> > 1400 Old Country Road Suite 408
> > Westbury, NY 11590
> > Phone: (516) 338 - 5283  Ext.148
> > Fax: (516) 876 - 8032
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--

Best Regards,

Yi Liu
Java Programmer

--

Invisible.Ink Corporation
1400 Old Country Road Suite 408
Westbury, NY 11590
Phone: (516) 338 - 5283  Ext.148
Fax: (516) 876 - 8032

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to