user reponse.sendRedirect or <jsp:forward>
e.g.
------------------------------------
<%
if(success){
  response.sendRedirect("suc.jsp");
}
else{
%>
<jsp:forward page="nop.jsp />
<% }
%>
------------------------------------

both of them should work...
Nishit

-----Original Message-----
From: Paulo Chitas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: redirect


Hello All!
I have one page jsp and one bean that connect to a DB, and i wont that when
connection sucssesfull they go to a "suc.jsp", and other wise they go to
"nop.jsp". How can i do it?
Thanks.

P.C

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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