MIME taglib ver. 1.1

    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.
2) id Optional attribute. Describes a name for the page scope variable (type is java.lang.String) with data. Without this attribute tag simply prints data.

for downloading:

Library: mimetag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: