Re: Managing file attachment

2008-12-02 Thread Shazad
Adam, Once again. Thanks a lot for your reply. Really appreciate your help and suggestion while i still investigate to make it work :). Regards Shazad On Mon, Dec 1, 2008 at 11:42 AM, Adam Ruggles <[EMAIL PROTECTED]> wrote: > > Instead of storing the file in the session, why don't you just store

Re: Managing file attachment

2008-12-01 Thread Adam Ruggles
Instead of storing the file in the session, why don't you just store the file name and path. If the user doesn't resubmit the request, then check for the file when the session expires and remove the file. I agree storing the file itself is a bad idea, but a reference to the location should be fi

Re: Managing file attachment

2008-12-01 Thread Shazad
Hi Adam, Thanks for your reply, really appreciate it. I am using struts 1.3. The validation is via validation.xml and it kicks in even before the action class can read the file, persistence is later step. The problem is if the do store the file in session in action class and then invoke manual va

Re: Managing file attachment

2008-11-30 Thread Adam Ruggles
I could be wrong but I believe you'd have to implement your own file upload interceptor and make sure the file is not removed after the execution of the action if a validation error occurs. Then you'd need to re-associate that saved file when the next request occurs. Also what happens if they ne