> My point wasn't that Village was not a useful tool, just that you need to
> answer questions without the phrase "Look at the source code". Since most
> people won't. It's far simpler to write it myself than to sift through
> someone elses code just to find out whether or not it will do what I need.
Like I said, we are talking about 50 lines of code here. The point of
Village is that it is very light weight.
(Side note: Also, it is a good idea to look at how other people write code
because sometimes you might learn something useful. ;-) I know that I have
learned quite a bit from other open source projects and would not have been
able to do so unless I had looked at the code. In fact, I just read through
the process of Apache JServ's custom class loader and learned quite a bit
about how classes are loaded into the JVM.)
> This seems like the right thing to do. Is there room for an optimization
> that uses the SQL COUNT operator when someone asks how many rows they will
> be getting? That seems to be a common request, even though that's not the
> way I program, I try not to limit others ability to program the way they
> prefer.
It is quite feasible to write a wrapper method around SQL COUNT. This would
be really nice to add to Town. Thanks for the feature request.
You could do something like this:
QueryDataSet qds = new QueryDataSet (connection, "sql" );
int size = qds.count()
> Assuming you know where to look.
I have included the url to village in almost every email on this subject.
;-)
<http://www.working-dogs.com/village/>
<http://www.working-dogs.com/town/>
On the page, is a link to the cvsweb interface.
It is all in front of you, you just need to open your eyes. ;-)
-jon
___________________________________________________________________________
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