CreateAnAJAXBasedFileuploadProgressbarDialog |
|
Your trail: |
Difference between
version 58
and
version 57:
At line 274 changed 5 lines. |
**FileUploadAction.java - the struts Action responsible for reciving the uploaded files and save them to disk |
**lightboxDwrUpload.js - The modified [Lightbox Gone Wild!|http://particletree.com/features/lightbox-gone-wild/] used to fade the contend outside the upload dialog |
**fileUploadForm.jsp and lbContent - the jsp page containing the struts form. It containf a {{lbContent}} div tag which represent the html code inserted in the upload dialog. It also contains an embeded javascript with the function {{function upload(form)}} This script only trigger the upload mechanism if one or more files has been selected. |
**dwrUpload.js - This script is the ajax functions that updates the content of the upload dialog. You can tweak the dialog refreash rate here. |
**ExtendedMultiPartRequestHandler.java - a slightly changed Struts controller (change marked by "Changed this section of code, that is it."). There is one important line here {{{UploadListener listener = new UploadListener(request, 1);}}} The '1' here means delay to 1 millisecond. By increasing this value uploads wil take longer time but will also be less CPU intensive. |
**__{{FileUploadAction.java}}__ - the struts Action responsible for reciving the uploaded files and save them to disk |
**__{{lightboxDwrUpload.js}}__ - The modified [Lightbox Gone Wild!|http://particletree.com/features/lightbox-gone-wild/] used to fade the contend outside the upload dialog |
**__{{fileUploadForm.jsp}}__ and lbContent - the jsp page containing the struts form. It containf a {{lbContent}} div tag which represent the html code inserted in the upload dialog. It also contains an embeded javascript with the function {{function upload(form)}} This script only trigger the upload mechanism if one or more files has been selected. |
**__{{dwrUpload.js}}__ - This script is the ajax functions that updates the content of the upload dialog. You can tweak the dialog refreash rate here. |
**__{{ExtendedMultiPartRequestHandler.java}}__ - a slightly changed Struts controller (change marked by "Changed this section of code, that is it."). There is one important line here {{{UploadListener listener = new UploadListener(request, 1);}}} The '1' here means delay to 1 millisecond. By increasing this value uploads wil take longer time but will also be less CPU intensive. |
Back to CreateAnAJAXBasedFileuploadProgressbarDialog,
or to the Page History.
|