Hi

Using the beans to store data is not the wise
solution.
if use the following the posted data will
automatically passed to another file.



 <%@ page language = "java" %>
 <% getServletContext).getRequestDispatcher
"/jsp/somepage.jsp").forward(request,response);
%>


If you are not able to solve the problem.
Reply me i will help you.
Regards
Deepak Kumar
email: [EMAIL PROTECTED]







--- Clemente Dani <[EMAIL PROTECTED]> wrote:
> Hi,
>
> you can do it in two ways:
>
> -you can store the data you get from the Jsp in a
> bean or other class
> that you could have in the session object.
>
> -you can send put the data into hidden fields in
> license.jsp, and re-
> send it to the client. After the client submits the
> license form, you
> can get the data from the hidden fields.
>
>
> Hope this helps you, Bye.
>
> ----- Mensaje Original -----
> De: Jean-Fran�ois Grezes
> <[EMAIL PROTECTED]>
> Fecha: Lunes, Enero 8, 2001 2:02 pm
> Asunto: 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.jsppage but displays
> > directly the download.jsp page ...
> >
> > I dunno how to deal with this problem since
> forward displays the
> > specifiedpage.
> >
> > 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
> (reques
> > 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
> >
>
>
>
________________________________________________________________
> Aprovechamos este mensaje para desearte una FELIZ
> NAVIDAD.
> Entra en http://www.navidad.navegalia.com/ y
> descubre las sorpresas que
> Navegalia tiene para esta Navidad.
>
>
===========================================================================
> 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
=== message truncated ===


__________________________________________________
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

Reply via email to