Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles




JSPWiki v2.2.33

[RSS]


Hide Menu

CreateAnAJAXBasedFileuploadProgressbarDialog


Difference between version 56 and version 55:

At line 270 changed 5 lines.
!!!Comments
*Change log4j to see whats going on
*FileUploadAction.java
*lightboxDwrUpload.js
*fileUploadForm.jsp and lbContent
!!!Comments and tips
*Change log4j to see whats going on.
*Central files in this solution
*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.