Custom JSP taglib lets you obtain mime type for the given file.
Could be useful when you deal with upload files for example:
<%@ taglib uri="taglib.tld" prefix="m" %> <m:GetMimeType file="${temp_file}"/> Tags are: GetMimeType Body tag returns mime type. Attributes are: 1) file Optional attribute. Describes a file name. Alternatively
you can present file as a body for this tag.
for downloading: Library: mimetag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|