Cynthia,

 if (condition)
 {
 session.putValue("possiblename","possiblevalue");
 res.sendRedirect("FirstServlet");
 }
 else
 {
 session.putValue("possiblename","possiblevalue");
 res.sendRedirect("SecondServlet");
 }


Jacky


-----Original Message-----
������: Cynthia Munoz <[EMAIL PROTECTED]>
�ռ���: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
����: 1999��6��20�� 5:02
����: Redirect a servlet


>Hi there,
>     I have a question now: How can I redirect a servlet to another servlet
>and send it an object. The thing is if something in servlet A is right,
then
>it goes to servlet B, if not, it goes to servlet C. How should I do that?
>
>Thanks in advance,
>Cynthia Mu�oz
>
>___________________________________________________________________________
>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