HTMLMacro for Java TM
Inline Program

Implementation Version: private-20100512-2025

The programability is achieved by embedding Jelly tags inside HTML. Jelly tags are somewhat similar to JSP tags, but more powerful.

For example, the following example generates a sequence number from 1 to 10:

<html xmlns:j="jelly:core">
  ...
  <j:forEach var="i" begin="1" end="10">
    <p>${i}</p>
  </j:forEach>

<j:forEach> is a Jelly tag that repeats the body multiples times. The namespace URI and the local name identifies a particular Jelly tag, and prefix is merely a proxy to the namespace URI (as it should be in XML.)

${i} is a variable substitution. Again just like JSP, this supports an extended EL.

There are a large number Jelly tag libraries that you can use out of box. If you choose, you can even write custom Jelly tag libraries by yourself in Java to add more programability.