Hi Sanika,
You can add the values with request object. To do this you should do
followings..

request.setAttribute("param1");
request.setAttribute("param2");
RequestDispatcher rd =
getServletConfig().getServletContext().getRequestDispatcher("/My.jsp");
rd.forward(request, response);

Now to get these values in your My.jsp
you should write a code like this..
String param1= request.getAttribute("param1");
String param2= request.getAttribute("param2");


That's all you need to do.

Manish




> ----------
> From:         Sanika Kapoor[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Wednesday, August 02, 2000 9:50 PM
> To:   [EMAIL PROTECTED]
> Subject:      Request Dispatcher Query
>
> Hi All,
>
> Can any one tell me how do we pass params thru request dispatcher?
>
> Sanika.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to