Re: File upload, validation and Preparable

2009-03-20 Thread Dave Newton
Greg Lindholm wrote: Same is true for both "paramsPrepareParams" stack and "defaultStack", the fileUpload is after the prepare interceptor (sorry, I didn't make it clear I was talking about paramsPrepareParams). Meh, my thinking was broken when I posted that anyway; I wasn't thinking about th

Re: File upload, validation and Preparable

2009-03-20 Thread Greg Lindholm
newton.dave wrote: > > Greg Lindholm wrote: >> I've discovered that in the standard interceptor stack "fileUpload" >> is after "prepare" interceptor. This means that the upload File, >> ContentType, and FileName setters have not been called before >> prepare() method runs. Is there a good reas

Re: File upload, validation and Preparable

2009-03-19 Thread Dave Newton
Greg Lindholm wrote: I've discovered that in the standard interceptor stack "fileUpload" is after "prepare" interceptor. This means that the upload File, ContentType, and FileName setters have not been called before prepare() method runs. Is there a good reason for this? It seems like fileUploa

RE: File upload, validation and Preparable

2009-03-19 Thread Kawczynski, David
I'm pretty sure you can't prepopulate input tags whose type=file. This is html4 and has nothing to do with struts. -Original Message- From: Greg Lindholm [mailto:glindh...@yahoo.com] Sent: Wednesday, March 18, 2009 4:17 PM To: user@struts.apache.org Subject: Re: File upload,

Re: File upload, validation and Preparable

2009-03-18 Thread Greg Lindholm
BTW That's Struts 2.1.6 and Tomcat 5.5. Greg Lindholm wrote: > > Got a couple questions about file uploading. > > I've discovered that in the standard interceptor stack "fileUpload" is > after "prepare" interceptor. This means that the upload File, ContentType, > and FileName setters have not

File upload, validation and Preparable

2009-03-18 Thread Greg Lindholm
Got a couple questions about file uploading. I've discovered that in the standard interceptor stack "fileUpload" is after "prepare" interceptor. This means that the upload File, ContentType, and FileName setters have not been called before prepare() method runs.  Is there a good reason for this