You can try doing like this,

Have a Hidden Form in license.jsp with

<have the License Doc content here>
...................


<form name="frm" action="download.jsp">
<input type=hidden name="<htmlformattributename>"
value="req.getPara..("<from-html-page>") >
<input type=hidden name="<htmlformattributename>"
value="req.getPara..("<from-html-page>") >
......so on

and <input type=button value=" I Agree" OnClick="document.frm.submit();">
</form>

hope this helps

regards
deeps

> ----------
> From:         Mrudula Madiraju[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list about Java Server Pages specification and
> reference
> Sent:         Tuesday, January 09, 2001 10:59 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: JSP & Forms
>
> Hi Jean,
> You should be using sessions for this. You could try the follwing steps:
>
> 1) Make the first html page which contains ur form as a jsp. In this jsp
> get access
> to the 'session'. 'Put' the values the user inputs into the session
> object.
> 2) In the second jsp, after the user has agreed to the license agreement,
> you can
> 'get' the values you have put in the session previously and process it
> further for
> db insertion etc.
>
> HTH,
> Mrudula
>
>
> Muhammad Asim Ajmal wrote:
>
> > use hidden feilds....
> >
> > Best Regards
> > Asim
> > ----- Original Message -----
> > From: Jean-François Grezes <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, January 08, 2001 6:02 PM
> > Subject: Re: JSP & Forms
> >
> > > 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
> > >
> >
> >
> ==========================================================================
> =
> > 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