jsf-tiles example
I want to insert a menu page in my actula jsp,
I'm having the following code, this is not working and giving Exception nuul, I'm not able to find what is the problem, did any one had this kind of problem, can some one help.
Error I'm getting is, Exception in:null] null
===============================loginPage.jsp=====================
<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<tiles:importAttribute scope="request"/>
<f:view>
<div class="bfrm" style="width: 72%;" >
<div id="location"></div>
<div style="height: 425px" class="cv_c">
<h:form id="HomePage">
<h:panelGrid columns="1">
<h:dataTable>
<h:column>
<f:facet name="header">
<td> <h:outputFormat style="width: 720px;" value="Receiving Schedules"/></td>
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>
<h:panelGrid columns="2">
<h:panelGrid>
<h:dataTable>
<td><img src="/images/collage.jpg" align="left" height="400" width="567"></td>
</h:dataTable>
</h:panelGrid>
<h:panelGrid>
<td>
<f:facet name="loginmenu">
<f:subview id="loginmenu">
<tiles:insert definition="lMenu" attribute="menu" flush="false"/>
</f:subview>
</f:facet>
</td>
</h:panelGrid>
</h:panelGrid>
</h:form>
</div>
</div>
</f:view>
=====================menu.jsp==================
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<h:dataTable>
<h:column>
<h:outputText id="menuName" value="Test"/>
</h:column>
</h:dataTable>
======================tiles-defs.xml ======================
<definition name=".loginPage" extends=".mainLayout">
<put name="content" type="page"
value="/WEB-INF/pages/loginPage.jsp"/>
</definition>
<definition name="lMenu">
<put name="menu" value="/WEB-INF/layout/menu.jsp"/>
</definition>
========================================================

