ResultSet rs = SQLStatement.executeQuery(Query);

        if(rs.next())

        {
           response.sendRedirect("welcome.jsp") //"forward to welcome.jsp"
show me the syntax here, thanks!

        }

-Wayan-
-----Original Message-----
From: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 10, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: jump to next jsp page, how?


hi,

When I query a SQL statement, the result comes true, then I want the current
Jsp page can forward to next Jsp page, let's say welcome.jsp


ResultSet rs = SQLStatement.executeQuery(Query);

        if(rs.next())

        {
            "forward to welcome.jsp" show me the syntax here, thanks!

        }



Franco

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to