As you said, use JSP forward as follows:


Have another as xxx.JSP,  in the confirm.jsp form action call this xxx.jsp

<%
   if request.getParameter(action)  = "Submit" {    // check the correct syntax and 
attribute name as per your code
%>
   <jsp:forward page="insert.jsp"/>
<%
   } else {
%>
       <jsp:forward page="register.jsp"/>
<%
   }
%>

Regds

Murugan K Patham
480 - 990 4200 Ext 2712

>>> [EMAIL PROTECTED] 01/30 12:58 PM >>>
Hi !

here is the quick question .

(a) I have three JSP Pages (registration.jsp , confirm.jsp, insert.jsp) . In
registration.jsp user will enter the data and form will be submitted .
(b) confirm.jsp is supposed to read all the data submitted by
registration.jsp and send them back to the client so that  user will have
chance to currect any data , that was incurrect .
        When submit button is pressed on confirm.jsp ,  the data should be
forwarded to  insert.jsp - where  data will be inserted in the back end
database .
        When cancel button is pressed on confirm.jsp ,  User should be taken
back to  registration.jsp - with all the fields  populated .


Here are my questions .

(1) How to send the user from confirm.jsp  either to registration.jsp or to
insert.jsp with all the data


Thanks in advance ,
Boda

===========================================================================
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