Create a bean with session scope and then pass the form data directly into
your bean.

for example:

<jsp:useBean id="ReportBean" scope="session" class="MyBeans.Web_Report"/>

<jsp:setProperty name="ReportBean" property="rowDisplayCount"
param="txt_size"/>

where param is the form feild you are sending directly into your bean.

then on future pages you can use the getProperty method to get back at the
data stashed in your bean. as below

<jsp:getProperty name="ReportBean" property="rowDisplayCount" />

This bean and its data will then be availible from all your Jsp pages.


>From: Helen Wan <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Form Data visibility
>Date: Mon, 12 Jun 2000 10:58:59 -0600
>
>Hi, I need help for doing the following:
>I have total of 5 JSP pages
>1.jsp is a form that has serveral fields
>2.jsp is a processor which validates the form data 1.jsp (through a
>java bean) then forward to another page
>3.jsp is that should display some of the data obtain from 1.jsp
>4.jsp is the same as 2.jps plus display some data from data base
>5.jsp is also the same as 3.jsp
>
>Currently, I can't get the form data from 1.jsp to display on 3.jsp, 4.jsp
>and 5.jsp.  3.jsp and 4.jps contain a button too.  Is there a way to keep
>track of the form data for the entire session/request.  I am very new to
>the technology, hope that this issue is not too hard to deal with.
>
>Thanks for any help
>
>------------------------
>Helen Wan at Gsnet Tel:
>(780) 413-9655  ext: 313
>email: [EMAIL PROTECTED]
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>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

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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