> > 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.
Fair enough.  I like the idea of the cancel button, that will
definitely keep things clean.  One thing that sucks about the web is
that users can abandon forms by killing the window and then you are
left stranded.  But crons (whether by deamon or event listeners)
will keep it tidy for now.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"I am the GOD.....the GOD...of house!" 
 -- Leeloo
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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

Reply via email to