Platform:  Jrun 2.3 on Linux.

I have seen a behavior with Jrun that I'm not sure is appropriate:  (Below
is a java style psudocode)

The observed behavior:

1)  Jrun is getting the fist level properties (in the example below, it does
company.getProduct(0), company.getProduct(1), company.getProduct(2)....) and
keeps the cached them somewhere until the get() returns null.

2)      Next, on each of the objects that were returned by the get(), the
next level is called.  Display - x:item where x will be the object returned
by get(0), get(1), etc.)

What's the problem with this:

1)      What if I have 1000000000000 rows! I may have the memory in the
system, but WHY PRE FETCH all the first level objects?
2)      In my case I am assuming that the index is 0, the values are fetched
then index is set to 1 values fetched, etc.....

My Question:

1)      I checked the JSP spec and it does not mention on how this should be
implemented.  Well, I can understand that, but then why has LiveSoft (makers
of Jrun) decided to implement it this way?
2)      I don't see any merits in the implementation.  Correct me if there
is a reason for this.
3)      How is this treated in other implementations of JSP also do this?


----------------------
I have a page in which I am looping through the properties of a bean:

<Loop PROPERTY=Company:products  PROPERTYELEMENT=x>
<DISPLAY PROPERTY=x:item><DISPLAY PROPERTY=x:description>
</loop>

Inside the company.getProducts(int idx)
        {
                System.out.println("Retuning Product " + idx);
                return prodcut;
        }

Inside product.getItem()
{
        String item = rs.getColumn("ITEM"); // where rs is the current
resultset relative to the idx.

                System.out.println("Product " + item);
                return item;
        }


After the JSP page is processed and I look at the stdout.log file I see the
following:

--->
Returning Product 1
Returning Product 2
Returning Product 3
Returning Product 4
ResultSetExaustedException
<---



Thanks,

Mayank Shah
Research Technology
212.449.0463
The current release is the final release until there is a new release!

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to