So whats the problem you're having you forgot to mention that =)
>From: sureshbabu chaluvadi <[EMAIL PROTECTED]>
>Reply-To: sureshbabu chaluvadi <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: reg.res.sendRedirect method
>Date: Sun, 27 Jan 2002 06:58:31 -0000
>
>Hi,
> I'm writing a small program.In that I want to redirect to one page on
>satisfying one condition and redirect to other on satisfying to other
>condition.
> Pls. help me how to do that.
> Here I'm giving the code what i've written.
>rs=st.executeQuery("select * from users where uname="suresh"");
> if(rs.next())
>{
> res.sendRedirect("\success.html");
>}
>else
>{
> res.sendRedirect("\fail.html");
>}
>
>Thanks
>Suresh
>
>
>___________________________________________________________________________
>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
>
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
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