Make DefaultFileItem in commons upload a real default instead of a mandatory default?

2004-10-23 Thread Michael McGrady
void setFormField(boolean state); public abstract void delete(); public abstract boolean isFormField(); public abstract boolean isInMemory(); public abstract void write(File file) throws Exception; } Thanks, Michael McGrady

Re: FileItem.getSize() == 0 Question

2004-10-20 Thread Michael McGrady
not? and (B) why does a file with a size of 0 get uploaded when the threshold is set at 4096? Michael McGrady Martin Cooper wrote: On Wed, 20 Oct 2004 11:27:40 -0700 (PDT), Joe Smith [EMAIL PROTECTED] wrote: If FileItem.getSize() == 0, it means either 1) The file doesn't exist 2) The file exists

Re: FileUpload Parameter Handling

2004-10-07 Thread Michael McGrady
Are you using Struts, Adam? Michael McGrady Adam Pelletier wrote: I'm using commons-fileupload-1.0.jar. I'm trying to upload a file using enctype=multipart/form-data. However, I'm also passing a hidden form input element with an ID stuck in it. This ID is critical for the state of the servlet

Re: FileUpload Parameter Handling

2004-10-07 Thread Michael McGrady
= uploadedFile11 UploadParser fieldName = uploadedFile12 UploadParser fieldName = submit.dispatch.x UploadParser fieldName = submit.dispatch.y UploadParser fieldName = fileOp From a page that has twelve input type='file' tags. Hope this helps. Michael McGrady Adam Pelletier wrote: No, this is just a plain

Re: FileUpload Parameter Handling

2004-10-07 Thread Michael McGrady
I cannot see how a servlet stepping through parameter values could break an architecture. What do you mean by that? If the parameter is there, then the servlet can read it. How that could affect architecture is not clear to me. Can you guys explain what you mean? Michael McGrady Paul

Re: FileUpload Parameter Handling

2004-10-07 Thread Michael McGrady
issues. I have a hugely efficient file upload application built on top of this functionality. Anyway, glad you are on track. These things can bedevil us. Michael McGrady Adam Pelletier wrote: I fixed my problem. My problem is that I had a Servlet that would serve up any number of Pages. The way

Re: DiskFileUpload.parseRequest returns no items

2004-10-04 Thread Michael McGrady
studying to do on this. Maybe the best thing is just of forget about using ActionForms in this case because they are too coupled to this solution? Back to the code. I had no idea. Thanks for your post. Michael Martin Cooper wrote: On Mon, 04 Oct 2004 21:02:38 -0700, Michael McGrady [EMAIL

Re: DiskFileUpload.parseRequest returns no items

2004-10-04 Thread Michael McGrady
talking about room for growth, alternatives, etc. Different people, as you know, have different requirements. That is what is nice about commons. Michael McGrady Martin Cooper wrote: Struts provides built-in support for file uploads, and always has done. I believe most developers don't find

Re: escape characters with org.apache.commons.lang.StringUtils

2004-09-07 Thread Michael McGrady
Harrie Hazewinkel wrote: HI all, For example, string line1\r\nline2\r\n should become line1=0D=0A=line2=0D=0A=. Use the replaceAll(String,String) method in String. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [FileUpload] new user, querying functionality? commons-fileup load

2004-08-25 Thread Michael McGrady
[EMAIL PROTECTED] wrote: Hi Martin. -Original Message- From: Martin Cooper Detail: Webpage (tomcat). User logs in, and is checked out (mysql). User enters required metadata, then selects files. Action required is for the client to transfer a number of

RE: [off topic] IP String to Integer function?

2004-08-11 Thread Michael McGrady
At 01:49 AM 8/11/2004, you wrote: check the standard java package java.net, class InetAddress etc... peter I have not checked what the result is, but I do know that InetAddress overides hashcode() in Object. - To unsubscribe,

FILE UPLOAD: ready for prime time?

2004-08-09 Thread Michael McGrady
Is the commons file upload code ready for prime time? What is the experience out there? Thanks for any feedback. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: wrap a Map into a DynaBean

2004-04-30 Thread Michael McGrady
It is really easier just to write your own tag for these specialty needs. Tag writing is relatively easy to do. At 01:03 AM 4/30/2004, Marco Mistroni wrote: Hi all, Is there any way, using beanutils package, to 'wrap' a Map Into a DynaBean or something similar? From errors that I have,

Re: Pooling impl that doesn't pool

2004-02-18 Thread Michael McGrady
I use a thread pool and I have yet to find a pool that does a better job. I have had trouble with all pools except the one I have been using without trouble since 1999. At 12:23 PM 2/18/2004, you wrote: Danny Angus wrote: Is there such a trivial pool impl available, or does anybody have clever

Re: Active Time of an object in a Pool...

2004-02-18 Thread Michael McGrady
Use a callback. At 12:47 PM 2/18/2004, you wrote: Hi all Is there any way to find out how much time an object has been active in a Pool? Thanx Rodrigo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,