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