Could the license be displayed in a Javascript window instead? And then
redirect them if they click "I Decline".

*********** REPLY SEPARATOR  ***********

On 1/8/2001 at 2:02 PM 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(re
ques
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

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