Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT



AJAX NEWS
AJAX Struts File Upload Progress Meter
03/23/2006, By Ken Cochrane



Ken Cochrane have posted a simple tutorial on creating the Ajax upload progress bar using struts and DWR.

He writes "Over the course of the last year or so I have been hearing a lot about AJAX, and how cool it is, and what neat stuff you can do with it. At first I wasn't too impressed, mostly because I have heard it all before. It wasn't until I saw google maps that I realized how cool it was. I have been itching to use Ajax ever since."

He further explains:

What I wanted to change in the example.

  • Get the example to work with struts
  • get the file to upload to a selected directory
  • show the status of the file in the progress meter
  • when the file is uploaded don't leave the page, stay on the same page (no redirect or refresh).


  • What I did.

  • I downloaded the war file with source code from the article
  • refactored the project directory
  • changed the build script
  • setup struts, log4j
  • added logging statements for easier debugging


  • Download the code for AJAX Struts File Upload Progress.

       Read Full Tutorial


     Rate this Ajax News
    Error connecting to mysql