As another alternative, you can download an early
implementation of RowSets from Sun and create a
CachedRowSet, which is exactly that: a disconnected resultset.

Martin

-----Original Message-----
From: PUB: T.A. Flores [mailto:[EMAIL PROTECTED]]

Are you aware that when you close your connection or resultSet that you
will loose the contents of your result set?  Pass you result set into a
collection of some sort like vector, hashtable, or whatever will suite
your needs.  At that point when you close your connection, etc. you
will still have the contents of your result set.

But I am curious as to why your adding to the session and not the
request/response?

~Tonia

----- Original Message -----
From: Daniel Cabrera Solana <[EMAIL PROTECTED]>
Date: Friday, October 19, 2001 0:38 am
Subject: Session tracking + ResultSet

> Hi all!:
>
> I am doing a servlet which goes to a bd. After I have the ResulSet
> of the
> query. I register this ResultQuery in the session with
>
> session.putValue("data",name_ResultSet );
>
> After I go to another servlet when I try to get this ResultSet the
> serverthrows a SQL exception and I don't have anything.
>
> Do you know what is the problem?
>
> Could you tell an alternative way?
>
> For examples with strings and session I have no problem I can recover
> everything.....
>
> Thanks a million, Daniel
>
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to