Hello experts,

I am a newbie to JSF and having a hard time understanding it. We have pre-built template in JSP and now I want to integrate that with JSF 1.2. The page loads fine except that the JSF form is rendered outside the template. I don't understand the JSF/JSP sequence. I googled but found no solution. Can someone explain?

Thanks


<%@taglib uri='/WEB-INF/tlds/template.tld' prefix='template' %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri = "http://java.sun.com/jstl/core" prefix = "c"%>
<f:view>
<template:insert template='/templates/template.jsp'>
<template:put name='pageContent'>
<h:form id="myform" prependId="false">
<table border=4>
<tr>
<td><h:outputText value="Enter Login ID: " /></td>
<td><h:inputText id="loginname" value="#{login.loginname}" /><h:message style="color:red;" for="loginname"/></td>
</tr>
<tr>
<td><h:outputText value="Enter Password: " /></td>
<td><h:inputSecret id="password" value="#{login.password}" /><h:message style="color:red;" for="password"/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center"><h:commandButton value="Login" action="#{login.ValidateUser}" /></td>
</tr>
</table>
</h:form>
</template:put>
</template:insert>
</f:view>