YATL
What is it?
A JSP Taglib template library designed to effect a clean separation of business logic from page design. Influenced by the HTML::Template Perl module, it has a deliberately small set of tags to perform common tasks such as variable substitution, looping and conditionals.
See demonstration of output.
Why the name YATL?
Yet Another Template Language, or Yet Another TagLib.
Where do I get it?
The project is hosted at SourceForge: http://www.sourceforge.net/projects/yatl/
What does it do?
Features:
- provide clean separation of business logic from interface design
- built using standard JSP 1.1 Taglib API
- drop-in installation without the need for any special servlet configuration
- uses standards-based, non-proprietary Taglib markup compatible with many jsp-aware editing tools.
How does it work?
It is simply a JSP1.1 spec (see http://java.sun.com/products/jsp/index.html) Taglib.
How do I use it?
See demonstration of output.
Example application installation
- drop yatl.war into webapps dir
- restart Tomcat
- point your browser at (eg) http://localhost/yatl/demo and check out the example
Development/Deployment Installation
- copy yatl.jar into /WEB-INF/lib dir
- copy yatl.tld into /WEB-INF dir 3) add standard tld entry to /WEB-INF/web.xml (see web.xml in example yatl app)
- write a servlet which insert result variables into a hash then forwards request to .jsp template (see example servlet net.lshift.jsp.taglib.jsp.demo.Test1.java
- write a template to display result (see /templates/test1.jsp for example)
Credits
This software has been developed by Sam Jones with assistance from LShift Ltd.
Finally
Any comments/questions/suggestions? Contact me, Sam Jones.