Re: FileUpload: Uploading an specific file format
On Nov 6, 2007 10:20 AM, Gerardo Corro [EMAIL PROTECTED] wrote: Thanks, but the accept is not working, it still shows me in the select window all file formats. I tested in firefox and IE7. What I'm doing wrong?? Nothing. AFAIK, the browsers just don't do that, so you're out of luck. -- Martin Cooper form method=post name=uploader enctype=multipart/form-data action=UploaderServlet p Send your .gif image br input type=file name=pic size=40 accept=image/gif p input type=submit value=Send /form From: petite_abeille [mailto:[EMAIL PROTECTED] Sent: Tue 11/6/2007 7:10 PM To: Jakarta Commons Users List Subject: Re: FileUpload: Uploading an specific file format On Nov 06, 2007, at 18:31, Gerardo Corro wrote: How could I get the same window just allowing to upload an specific type of file, like an .xls or .doc or .jpg? http://www.w3.org/TR/html4/interact/forms.html#adef-accept - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente. Pueden estar protegidos por secreto profesional Si usted recibe este correo electronico por error, gracias de informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FileUpload: Stop ISP Caching ?
Constantin Moisei wrote: Hello, I'm using commons-fileupload.jar with ajax to do a multi file upload. I have the feeling that my ISP uploads the file and when they receive it all only then they pass it to me. That causes me to get the file almost instantly. I'm displaying a progress bar for each upload but if they pass the file to me like that I got no control and the user will not be able to figure it out what's happening. How do I have to self manage the cache via response headers with Cache-Control ? That's a typical behaviour if your ISP is running an automatied virus check on those files ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FileUpload: Stop ISP Caching ?
So you don't think I can bypass that behavior ? On 06/11/2007, Jörg Schaible [EMAIL PROTECTED] wrote: Constantin Moisei wrote: Hello, I'm using commons-fileupload.jar with ajax to do a multi file upload. I have the feeling that my ISP uploads the file and when they receive it all only then they pass it to me. That causes me to get the file almost instantly. I'm displaying a progress bar for each upload but if they pass the file to me like that I got no control and the user will not be able to figure it out what's happening. How do I have to self manage the cache via response headers with Cache-Control ? That's a typical behaviour if your ISP is running an automatied virus check on those files ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Constantin www.goodstockimages.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: VFS how to read gzipped content from tar file
You mentioned that you wanted to look into a tarball (gzipped tar file), but the URL you gave was only for a tar file. Something like this should work: gz:tar:file:///extra/data/tryVfs/archive.tar.gz!/myfile.txt Hope this helps, Mark On 10/31/07, Ken Tanaka [EMAIL PROTECTED] wrote: Thanks for the suggestion, but I'm getting a different error when I try that: org.apache.commons.vfs.FileSystemException: Could not resolve file gz:tar:file:///extra/data/tryVfs/archive.tar!/!/. at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile ( AbstractFileSystem.java:301) at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile( AbstractFileSystem.java:267) at org.apache.commons.vfs.provider.AbstractFileSystem.getRoot( AbstractFileSystem.java :242) at org.apache.commons.vfs.provider.AbstractLayeredFileProvider.createFileSystem (AbstractLayeredFileProvider.java:82) at org.apache.commons.vfs.provider.AbstractLayeredFileProvider.findFile ( AbstractLayeredFileProvider.java:59) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile( DefaultFileSystemManager.java:641) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile ( DefaultFileSystemManager.java:602) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile( DefaultFileSystemManager.java:570) at gov.noaa.eds.tryVfs.App.main(App.java:51) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at org.apache.commons.vfs.provider.compressed.CompressedFileFileObject.init( CompressedFileFileObject.java:48) at org.apache.commons.vfs.provider.gzip.GzipFileObject.init( GzipFileObject.java:39) at org.apache.commons.vfs.provider.gzip.GzipFileSystem.createFile( GzipFileSystem.java :42) at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile( AbstractFileSystem.java:296) ... 8 more Here is the exact code corresponding to the above error: FileObject contentFile = fsManager.resolveFile( gz:tar:///extra/data/tryVfs/archive.tar!/tardir/content.txt.gz ); Philippe Poulard wrote: Hi Ken, Ken Tanaka a écrit : FileObject gzTarFile = fsManager.resolveFile(tar:gz:/archive.tar!/tardir/content.txt.gz); try this : fsManager.resolveFile(gz:tar:/archive.tar!/tardir/content.txt.gz); -- = Enterprise Data Services Division === | CIRES, National Geophysical Data Center / NOAA | | 303-497-6221| = [EMAIL PROTECTED] = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAKARTA COMMONS DIGESTER RULES XML PROBLEM
Thanks, this sounds interesting to me. straight fromXmL and toXML functions, i will surely try this n betwixt next week. On 11/5/07, James Watkin [EMAIL PROTECTED] wrote: Kapil, Not to take anything away from the excellent Apache Commons projects, but I recently used XStream on a project with great success. It's very easy to use for a variety of use-cases. http://xstream.codehaus.org/ - Jim Kapil Pruthi wrote: Can betwixt be used to transform xml to java? on overview page i read that it can only do java to xml On 10/31/07, Björn Thalheim [EMAIL PROTECTED] wrote: Hi, Simon Kitching wrote: However digester was never really designed for processing input files which have a complete 1:1 mapping to java beans. The strongest feature of Digester is the huge flexibility it offers when mapping xml to java - which you obviously do not need. Maybe Apache Commons Betwixt is what you need ... AFAIK it works quite well especially if you use a 1:1 mapping (in any other case one has to specify the mapping in .betwixt files). Regards, Björn -- __ James Watkin ACIS Software Development UCLA Anderson School [EMAIL PROTECTED] Voice: 1-310-825-5030 Fax: 1-310-825-4835 __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]