Dan Allen wrote:
 
> Assume I have a 4 page form which gathers user information, address
> information and company information.  I would like to give the user
> the opportunity to upload a logo while filling out the form.  If I
> do this in the natural place, which would be in step 2, I am not
> sure how to handle the case where the user will cancel the form in
> step 3 if I save the logo to disk.

I would try to provide the best ergonomics and therefore I'd have logo 
upload in the second step. When uploaded, place the image in a temp. folder 
under the <sessionId>.gif name or something like that. When the wizard 
completes, place the uploaded image in the right place and remove it from 
the temp. dir. Also, if you have 'cancel' button in your wizard, bind it to 
CleanAction or something like that. Also, servlet spec 2.3 defines some 
session listener classes which could be used to periodically check the temp 
dir and the active sessions (no active session -- delete the file). And, of 
course, simple cron job which deletes temp files older than X hours is a 
must.
-- 
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to