Custom JSP taglib. This taglib lets you monitor changes for some file and execute (do not execute) body depends on the detected changes.
For example:
we have to do something only if file data.xml has been changed
You can use this taglib for cache support or for some web content management system for example.
Tags are:
isChanged
Body tag. Executes own body if date of last modification for file has been changed. Parameters are:
1) file target file
2) scope Optional parameter. Possible values are session or application.
Defines scope for modifications tracking: globally (application scope) or per user (session scope). Default value is session.
notChanged
Body tag. Executes own body if date of last modification for file has not been changed. Parameters are:
1) file target file
2) scope Optional parameter. Possible values are session or application.
Defines scope for modifications tracking: globally (application scope) or per user (session scope). Default value is session.
for downloading:
Library: fmonitor.jar Description: taglib.tld
See also Coldtags suite - the largest collection of custom JSP tags.