Re: [fileUpload] Question about file name

2005-06-10 Thread Mihael Knezevic
this whole discussion is old. it can be found in the archives. the implementation of the jvm on linux FROM SUN is faulty on this one. cause when use use a filename like /tmp/mydir/myfile.txt and make a file object of it on a windows system and get the name you would get the name myfile.txt

RE: [logging] Log message color

2005-06-10 Thread Jörg Schaible
Simon Kitching wrote on Friday, June 10, 2005 12:27 AM: On Thu, 2005-06-09 at 14:12 -0400, Larner, Ross S wrote: Hello. I am using the Commons Logging and I would like to find out the way to change the color of the log messages that show up in the Eclipse window. Previously I was using

RE: [io/configuration] file:// URL problem

2005-06-10 Thread Jörg Schaible
Poppe, Troy wrote on Thursday, June 09, 2005 10:27 PM: It appears that my problem stems not from io or configuration, but instead from VFS! I grabbed the latest VFS from SVN, and dug through it a bit, and I think there might be a bug in org.apache.commons.vfs.provider.local.LocalFileName.

[Digester] Re: Parse exceptions on DOCTYPE after upgrading digester jar file

2005-06-10 Thread Mattias J
Even though I love Resin as a web container, I have had to report numerous bugs in the XML parser. You might have hit yet another one. (Or make sure you use the latest version of Resin). You can use another XML parser by setting system properties in the web.xml or resin.conf like this:

RE: new GUI technologies

2005-06-10 Thread Leandro Rodrigo Saad Cruz
Hi Matt. You have two choices: DHTML or Flash. If you don't want to go with flash, I suggest you to take a look at the new DHTML functionality available today. You can do pretty good things with javascript + CSS. Take a look at RICO http://openrico.org/home.page Here is a collection of AJAX

Re: FileUpload: File name in Japanese characters

2005-06-10 Thread hitesh . j
Hi Jason, The file system supports Japanese characters. I wrote a small java program which creating file with file name containing Japanese characters. In my web application I printed the File name in log and it is showing in Japanese. But when I am saving file on Disk using FileItem.write()

[ignore] test

2005-06-10 Thread Nicolas De Loof
ignore... This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate,

[PATCH] RE: [io/configuration] file:// URL problem

2005-06-10 Thread Poppe, Troy
Here's a quick patch... (As if one was needed) Index: src/java/org/apache/commons/vfs/provider/local/LocalFileName.java === --- src/java/org/apache/commons/vfs/provider/local/LocalFileName.java (revision 189963) +++

[collections] ConcurentModificationException-free iterator ?

2005-06-10 Thread Nicolas De Loof
Is they're any way to get an Iterator on a collection (in my case a map) when other trheads are adding datas, and not get ConcurrentModificationException ? I've tested some freeze solution to lock put() method during my iteration, but as it seems to work (?) it is neither standard nor fully

Re: FileUpload: File name in Japanese characters

2005-06-10 Thread Ronald Klop
Try FileUpload.setHeaderEncoding(...). See fileupload javadoc: http://jakarta.apache.org/commons/fileupload/apidocs/index.html setHeaderEncoding public void setHeaderEncoding(java.lang.String encoding) Specifies the character encoding to be used when reading the headers of individual

Re: [collections] ConcurentModificationException-free iterator ?

2005-06-10 Thread Ronald Klop
1. You can copy the Map before getting the iterator. (needs some locking also) 2. In Java 5 is a ConcurrentHashMap. On Fri, 10 Jun 2005 17:12:05 +0200, Nicolas De Loof [EMAIL PROTECTED] wrote: Is they're any way to get an Iterator on a collection (in my case a map) when other trheads

Re: [csv] Creating a CSV component

2005-06-10 Thread Mark Diggory
I would suggest that parsing files, especially data files is going to have allot of overlap within commons. What about tab, fixed field etc. This sounds more like its own tool in the long run. Think about the implications for producing drivers for JDBC or parsers for JAXP etc. thats based on a

Re: FileUpload: File name in Japanese characters

2005-06-10 Thread Martin Cooper
On 6/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jason, The file system supports Japanese characters. I wrote a small java program which creating file with file name containing Japanese characters. In my web application I printed the File name in log and it is showing in Japanese.

[collection] can I avoid synchronized using a ReferenceMap ?

2005-06-10 Thread Nicolas De Loof
Hello, I'm building an UDP based integration service. Each 'client' sends a query on UDP socket and waits for the response. A thread receives all responses and dispatch to clients. My current implementation uses an object that is used as message CorrelationId. When sending a message, the

Re: [logging] Startup problem with Tomcat because of commons-logging

2005-06-10 Thread Simon Kitching
On Fri, 2005-06-10 at 12:26 +0200, Thomas Dudziak wrote: Hi folks, I have severe problems with a webapp that uses commons-logging, in Tomcat 5.5. The webapp contains the newest commons-logging and log4j 1.2.8, and configures logging via a log4j.properties in WEB-INF/classes. So far, so

Re: Parse exceptions on DOCTYPE after upgrading digester jar file

2005-06-10 Thread Reid Pinchback
Suggested experiment: Put a copy of the tiles DTD on your drive. Edit the XML file you were digesting to change the system id (the http url), and replace it with the path to the file on your system. If the problem goes away then it means you got a less-than-useful message disguising the real