fred garvin

Greenhorn
+ Follow
since Jul 19, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by fred garvin

very elegant Jon, I will indeed steal your code and use it. Thank you.
[ February 18, 2006: Message edited by: fred garvin ]
18 years ago
Thank you ernest. now it occurs to me that I may have done this before. would this be what you mean(or something similar):

Collections.sort(list, new Comparator(){
public int compare(Object obj1, Object obj2) {
String string1 = (String)obj1;
String string2 = (String)obj2;

return string2.length() - string1.length();
}
});
18 years ago
hello troops

question: if i have a collection of objects, which are all the same, and the class has at least 3 different attributes. i want to sort this collection from time to time in respect to one of the attributes. the next time i sort it i want to do it in respect to a different attribute. whats the best way and most effecient way to do this?

thanks
18 years ago
hi all

I would like to know what the correct way to set the jndi properties in my tomcat web app. I don't want to hard code the properties in the jsp. Years ago we set these properties:
java.naming.factory.initial
java.naming.factory.url.pkgs
java.naming.provider.url

I'm sure this goes in a xml file. Which one, and how? web.xml?

Here I am assuming tomcat and jboss are on separate servers.

Thank you for any help.
hello

I seem to be really bad at searching the web so I'm going to throw myself at the mercy of you guys.

Here's what I'd like to get done -
there's a web site that I like; I want to extract information out of certain pages from it.
There are lots of pages, but the content is always embedded in a certain tag.

Now I can certainly do this just with the java.net classes and some string parsing. But I feel I should use a more elegant approach.

Could I get advice on a popular software and maybe a quick pointer and which calls I need to make?

Thanks a million for any answer!
18 years ago