Custom JSP taglib. This taglib lets you scan and read resources in your web applications.
For example:
Here tag forEachResource lets you iterate over existing resources for the given path. Nested variable resourceName describes a current resource. Tag getResource is actually a wrapper for getResourceAsStream() operation.
Tags are:
forEachResource
Body tag executes own body for the each resource. Parameters are:
1) pathOptional parameter. Describes a path for lookup. Default value is /
getResource
Tag reads and prints (saves in the page scope variable) resource file. Parameters are:
1) path describes a path for your resource.
2) id Optional parameter. Describes a name for the page scope variable.
(type is java.lang.String). Without this parameter tag just prints data.
for downloading:
Library: resourcetag.jar Description: taglib.tld
See also Coldtags suite - the largest collection of custom JSP tags.