Unless you are planning to have only one user executing queries at a time I
would suggest that you use a session variable to hold the data not a
'global' ( actually variables declared in the <%! %> declaration sections
have class scope ).

Like this:

<%
        String results[][] = session.getValue("My.Results");

        if ( results == null )
        {
                results = // get results for query

                session.putValue("My.Results",results);
        }
        // code to generate the results table:
%>

Dana H. P'Simer, Jr.
x7547
[EMAIL PROTECTED]
[EMAIL PROTECTED]


-----Original Message-----
From: Rajiv Kumar Bandaru [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 25, 2000 4:09 AM
To: [EMAIL PROTECTED]
Subject: Re: diplay of records page by page


Hi Ashwani,

I think better way to declare u'r array or vector as global variable,

ie <%! String results[][] = null; %>

after get records and assign to the Array. I hope u will not the data.

Hope this may help U

Rajiv


----- Original Message -----
From: "Ashwani Kalra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 25, 2000 9:33 AM
Subject: diplay of records page by page


> Hi,
>
> Rajiv has given me  the solution for diplaying the records page by
page(say
> 10 records per page). But Once i get all the records from the database i
> dont want to use my EJB to do any thing. I just want those records
obtained
> in a vector or array to be displayed page by page
> Has any body more ideas ???
>
> thanks
> Ashwani
>
>
> Visit http://www.niit.com for eCommerce Solutions.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

PSimer, Dana.vcf

Reply via email to