Ajax upload taglib ver. 1.2


    Custom JSP taglib lets you upload files asynchronously. This web component mimics (replaces) HTML form for uploading. For example:
 


<%@ taglib uri="taglib.tld" prefix="a" %>

<a:AjaxUpload action="/servlet/Upload">

   <input type="file" name="fname">
   <input type="submit" value="Upload">

</a:AjaxUpload>

and you will get a standard Upload form like this:
 

but file here will be uploaded without the refreshing your main screen. As per action you can provide here your normal CGI script (servlet, JSP page) for uploading. See for example Upload taglib from Coldtags suite.

Tags are:

AjaxUpload

Body tag lets you upload file (files) asynchronously. Parameters are:

1) name Optional attribute. Describes a name for your HTML form.
2) action Optional parameter. Describes an action for your CGI script (servlet, JSP file) processes uploading.
3) beforeAction Optional parameter. Describes a JavaScript function that will be called before the request.
4) afterAction Optional parameter. Describes a JavaScript function that will be called upon the request completion.
5) onSubmit Optional parameter. Describes a JavaScript function for the validation before submitting.
 

for downloading:

 Library: ajaxuploadtag.jar     Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: