RE: Sort a collection in alphabetic order

2003-03-10 Thread David Haynes
Since you are in a while(rs.next()) context, why not sort on insertion? Just pop your results into a Vector (or other collection) in sort-order. Depending upon the number of elements expected, you could speed the insertion using a number of methods. If your lists are relatively small, it may be

RE: Sort a collection in alphabetic order

2003-03-10 Thread David Haynes
is always a good idea. But I am curious to know why you are unable to do a re-SELECT statement? -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 3:49 PM To: 'Struts Users Mailing List' Subject: RE: Sort a collection in alphabetic order Since you

RE: Struts or DBCP?

2003-03-03 Thread David Haynes
My guess, without seeing exactly what you are doing, is that your code is checking whether it already has precompiled the statement and is attempting to re-use that statement without having the same database connection. During the re-use, the previous user is doing either a stmt.close() or

More on Tomcat, Struts and DBCP

2003-02-27 Thread David Haynes
I had a look at the source code around this issue. Here is a summary: The 'Cannot load JDBC driver class 'null'' message is coming from the createDataSource method in DBCP. The method throws an exception for driverClass = Class.forName(driverClassName). So, from this I think I can assume the

Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
After working on this for most of the day, I have discovered that Tomcat 4.1.18 and DBCP do not play well together. There is a bug against Tomcat for this (I have *got* to remember to check the bugs databases sooner ;-) ), but no analysis or corrective action has been recorded to date. So, my

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 4:43 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using? After working on this for most of the day, I have discovered that Tomcat 4.1.18 and DBCP do not play well together

RE: [OT] Modeling tools

2003-02-10 Thread David Haynes
Mm. Blue Heron and Terminator Stout. It's been a long time since I was in Portland. RE: Red wine. It should be served at room temperature - of the average French Chateau cellar ;-) -david- -Original Message- From: Will Etson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10,

Do I have to set a classpath? If so, how?

2003-02-04 Thread David Haynes
Newbie developer here: I have a bean (fooManager) that is sitting in the /WEB-INF/classes space. I am referencing it in a jsp as jsp:useBean id=foo class=fooManager scope=session/ When I access the jsp, I get a Cannot resolve symbol for fooManager. I thought that the classpath was

RE: Do I have to set a classpath? If so, how?

2003-02-04 Thread David Haynes
Yep! It looks like that was it. I thought I didn't to package a simple class. Thanks muchly! -david- -Original Message- From: otisg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 2:55 PM To: David Haynes Subject: Re: Do I have to set a classpath? If so, how