> > >
> > > What I'm after is a methodology for caching a large resultset so that
> > > you can 'page' through it and 'elegantly' being able to dispose of
> > > the resultset cache when you leave the resultset display page.
> >
> > Did you try to use a cleanup method triggered by a JavaScript onUnload
> > event ? (that is: document.onUnload())
> >
> As far as I know, you can't call a method in a bean (server side) from
> JavaScript (client side)... Am I wrong about this?
>
Correct, for server-side beans. What _does_ work is using RMI or CORBA to do
remote method calls that navigate through a result set and return a part of
it. We use CORBA here for reports that can contain tens of thousands of
rows, and we deliver subsets of the report to the client on request. The
huge report stays on the server, and gets cleaned up when the CORBA object
is destroyed.
Although our client is a Java app, it would be fairly easy to use
server-side java in the web server (e.g. a bean in a JSP page, or a
servlet) to talk to our CORBA server and do the same thing. Then, we could
have web pages with buttons that invoke the servlet or JSP page to return
part of the result set, thus facilitating navigation.
Another way of doing it would be to use an applet and have the CORBA
connectivity directly between the browser and the CORBA server. JavaScript
could be used to link form navigation buttons to the applet, if it was
important to minimize the client-side java. Note that using CORBA in the
browser has its own problems -- many firewalls won't allow incoming
connections. We use Visigenics here, which has a program called gatekeeper
that takes care of this issue fairly well.
Hope this gives you some good ideas...
_3
M
===========================================================================
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