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 reason for this? It seems
>> like fileUpload should be before prepare so that these "parameters"
>> have been set and are available to the prepare() method. What do you
>> think?
>
> That's why the "paramsPrepareParams" stack exists.
>
>
Dave,
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).
So you also thought (or believe) the fileUpload interceptor should be before
the prepare interceptor in the paramsPrepareParams stack? That's way I'm
asking is there any reason it isn't?
Greg
--
View this message in context:
http://www.nabble.com/File-upload%2C-validation-and-Preparable-tp22587156p22619912.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org