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?


<%@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"%>
<template:insert template='/templates/template.jsp'>
<template:put name='pageContent'>
<h:form id="myform" prependId="false">
<table border=4>
<td><h:outputText value="Enter Login ID: " /></td>
<td><h:inputText id="loginname" value="#{login.loginname}" /><h:message style="color:red;" for="loginname"/></td>
<td><h:outputText value="Enter Password: " /></td>
<td><h:inputSecret id="password" value="#{login.password}" /><h:message style="color:red;" for="password"/></td>
<td align="center"><h:commandButton value="Login" action="#{login.ValidateUser}" /></td>