The JspTemplatePanel component allows a JSP page to be used as a template to contain other echo components.
Components are added to the panel with a "constraints" name. The JSP markup itself canb use a special tag inside (that uses the constraints name) to indicate where the embedded component should be rendered within the JSP.
This special taglib takes the form <app:echoComp name="namevalue">
Also a JspBeanGenerator interface can be used to allow custom JSP output to be generated. The JspBeanGenerator object is called to generate an value. The JspBeanGenerator is added using Request scope and hence can be called in the form <%= request.getAttribute("namevalue") %>
The actual JSP markup template will be compiled using the standard application server JSP capbilities and hence will run very fast after the initial request.
It is fully discuss in the article Using The HtmlTemplatePanel and JspTemplatePanel Components.
|