Java Exchange is dedicated to servlet-based technologies for Java. The current focus is on servlet-based applications involving database backends. Database expertise is centered around Oracle® and Solid®.


JSTemplate allows you to create flexible templates from any URL source. The templates take advantage of free format, user defined tags.

One of the immediate problems encountered in designing Web Based applications is that of having HTML in your code or the alternative of having code in your HTML (as with ASP or JSP). After experimenting with both of these problems, I decided to build a very simple, straightforward solution that leverages the power of HTML without imposing arbitrary and rigid tag definitions. The result is JSTemplate. JSTemplate allows you to call up a template from any URL source and has two methods for the replacement of on-the-fly tags. Tags may be replaced only once (performance benefit) or as many times as you may specify.

Here are some sample tags: