Hi,

ljnb01 wrote:

I cannot get Click to work with JSP pages. I wanted to include a JSP page in
my Click app. Reason: We have a legacy code base heavily using JSP/Struts.
How about JSF pages? Can we include it in a Click app?


A Click page is a logical unit consisting of a Java Page class (backing bean in JSF speak) and a template. The template can either be a Velocity/Freemarker template (.htm) or a JSP template (.jsp).

At rendering time, if Click detects the Page class is associated with a JSP template (.jsp) it *forwards* to the jsp which is then handled by the servlet container as a normal request to the JSP template.


This thing is holding us back to use Click as all our existing codes are
using JSP/JSF/Facelets. Bottom line is I have to be able to include existing
JSP pages if we wanted to use Click.

Any suggestions or tutorials ? I read all I can find, and I know Click can
work with JSP, but my question is how can I make .htm including JSP pages.
Any tags like <ui:include>?


From what I understand you want to use a Velocity border template (border-template.htm) to include a JSP page? To my knowledge this won't work since Velocity does not support including JSP templates (not sure about Freemarker). Velocity does support custom directives (similar to JSP tags) but I've limited experience with them so not sure if they can be extended to include JSP templates.

What does work though is using a border-template.jsp which includes other JSP templates where each JSP template is backed by a Click Page class.

kind regards

bob

Reply via email to