pack:tag: Static Resource Compressing JSP Taglib

pack:tag is a serverside static-resource compressing JSP-Taglib. It caches ad hoc compressed JavaScript or CSS in memory or in a file. Compressing-algorithms could be exchanged per resourcetype thru strategy-pattern. It works transparently to the developer and the compressing-algorithms are pluggable. Features Minification of JavaScript and Cascading Style Sheets Caching to filesystem or memory (servlet) When caching […]

Share online:

pack:tag is a serverside static-resource compressing JSP-Taglib. It caches ad hoc compressed JavaScript or CSS in memory or in a file. Compressing-algorithms could be exchanged per resourcetype thru strategy-pattern. It works transparently to the developer and the compressing-algorithms are pluggable.

Features

  • Minification of JavaScript and Cascading Style Sheets
  • Caching to filesystem or memory (servlet)
  • When caching to memory, the minified content is additional gzipped
  • Apache Standard Taglib support for evaluations
  • Compression and hashcode-generation adjustable on single resources

Examples: You would use JSP tags such as the following in your JSP files:

<pack :script src="myJavaScriptFile.js"/>
<pack :style src="myCascadingStyleSheet.css"/>
<pack :script src="myJavaScriptFile.js" enabled="false"/>

pack:tag | Download: pack:tag

Source:→ ajaxian

pack:tag, Static, Resource, Compressing, JSP, Taglib, Java, Javascript, Library

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he’s engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.