I wonder how u'd have a resultset without
knowing the cloumn index. May be you did a "select * from
tablename". If that is the case, get the cloumn count
(getColumnCount()) and iterate through. While in the loop, get
the the actual column name (getColumnName(index)) and then compare it to
the cloumn name u want before calling getColumnDisplaySize on the index.
Hope that helps.
Emmanuel Eze ___________________________________________________________________________ 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
|
Checked by Hu-fw-scar ___________________________________________________________________________ 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