Hello

I'm thinking about it is better to pass java.sql.Resutset  from DBBean to
JSP directory.

I konw two ways

1 use resultSet
excecuteSQL in DBBean , getResutSet in JSP, print each colmuns as HTML in
JSP.
After print all colmuns,resultset,statemt and connection will be closed.

2 make vector or arayy
excecuteSQL in DBBean, set eachResultSet to Vector,
and getVector in JSP,prin cach colmun as HTML in JSP


1 is easy,but it takes more time to close resultset,statment,connection than
2.
   And there is less certainty whether connection will be closed.

2 is complex take much time,but resultset,statemt,connection will be closed
certainty.

___________________________________________________________________________
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