return;//statement
would do.
> ----------
> From: Alan Goodenough[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list about Java Server Pages specification and
> reference
> Sent: Monday, January 08, 2001 8:11 PM
> To: [EMAIL PROTECTED]
> Subject: Quick Question..
>
> to terminate a page in asp you use response.end. what is the JSP
> equivalent?
>
> cheers
>
> Alan Goodenough
> ----------------------------
> Web Developer
> Domino
> The Digital Agency
> --------------------------
> Tel: 01865 821821
> ----- Original Message -----
> From: "maurice coyle" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 08, 2001 1:47 PM
> Subject: Re: JSP & Forms
>
>
> > could you use a JavaScript function, called on clicking the submit
> > button which contains the following lines?
> >
> > newWin = window.open("license.jsp");
> > return false;
> >
> > this should open a new window which displays license.jsp and the
> > download page won't be loaded until the user presses agree or whatever.
> >
> > if you want the new window to disappear when agree is pressed, just put
> > this line: onClick='self.close()' in the tag for the agree button.
> >
> > hope this helps some.
> > maurice
> >
> >
> >
> >
> >
> > Jean-François Grezes wrote:
> > >
> > > Ok .. but my problem still remains ..
> > >
> > > Let me describe my problem a bit more ...
> > >
> > > I have a form.htm page collecting informations from user...
> > > When the user clicks on "Submit",
> > > I'd like to display a licence agreement (say license.jsp) and wait for
> the
> > > user to click "I agree"
> > > And finally, after the click, display my download page (download.jsp).
> > > But my problem is that i'd like to insert data in my database through
> the
> > > download.jsp page and not
> > > from the license.jsp page.
> > >
> > > If i do what you suggest, the Submt button do not display the
> license.jsp
> > > page but displays
> > > directly the download.jsp page ...
> > >
> > > I dunno how to deal with this problem since forward displays the
> specified
> > > page.
> > >
> > > Thanks for help :)
> > >
> > > J.
> > >
> > > ----- Original Message -----
> > > From: "Deepak Kumar" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, January 08, 2001 12:22 PM
> > > Subject: Re: JSP & Forms
> > >
> > > Hi,
> > >
> > > When you use the "sendRedirect()" another page is
> > > redirected to your browser. Instead of redirecting the
> > > page to the browser if you redirect your request the
> > > abother page, your problem will be solved. to
> > > accomplish this use the following code.
> > >
> > > <%@ page language = "java" %>
> > > <%
> > >
> getServletContext().getRequestDispatcher("/jsp/somepage.jsp").forward(requ
> es
> > > t,
> > > response); %>
> > >
> > > Regards
> > > Deepak Kumar
> > >
> > > --- Jean-François_Grezes
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I have an html page which consists in a form. Users
> > > > enter the requested
> > > > informations and submitting the form send them
> > > > (using GET or POST) to a JSP
> > > > page which inserts informations in a database.
> > > >
> > > > I would like to add a policy between the form and
> > > > the jsp page but doing
> > > > that, user's informations are lost ...
> > > > How can i redirect my request to the jsp database
> > > > page when the user clicks
> > > > on the 'accept terms of this policy' button on the
> > > > second page ...
> > > >
> > > > Thus, I think it will answer the following question
> > > > : "How can I implement a
> > > > multi-page form with JSP?"
> > > >
> > > > Thanks ..
> > > >
> > > > J.
> > > >
> > > >
> > >
> ==========================================================================
> =
> > > > 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
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Photos - Share your holiday photos online!
> > > http://photos.yahoo.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://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
> >
> > --
> > I18n group,
> > Sun Microsystems Ireland.
> > Phone: 8199751, x19751
> >
> >
> ==========================================================================
> =
> > 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
>
===========================================================================
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