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>

========================================================

[2706 byte] By [VenuBurlaa] at [2007-10-2 17:30:06]
# 1
I followed an example from Core Java Server Faces by Sun Microsystems, DAVID GEARY ,CAY HORSTMANN.This worked fine for me
VenuBurlaa at 2007-7-13 18:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

have been having trouble trying to get Suns JSF working with struts-tiles. It seem I don't know how to link to it in the face-config.xml like you would normally do in struts-config.xml.Can you email your code, exspecially the xml files, so I can how it is wired up.

Thanks!

etnot96@yahoo.com

tontea at 2007-7-13 18:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...