You can try using Uploadify from code.google.com/p/jqwicket/, which lets you
put event handlers on successful completion. You need to write a separate
servlet to handle upload though, but it's quite straightforward. One small
trick is overriding getEventHandler() so you can pass the javascript
Is it possible to open a modal window after file upload completion.
Even though I'm using the AJAX file upload which shows the progress bar
the submit handler doesn't contain a 'target' parameter required to
bring up a modal.
protected void onSubmit()
{
final FileUpload upload =