Hi all,

I'm trying to use the Tiles definitions to define my
pages, and not have JSP pages assembling the tiles. I
can get Tiles to recognize a named definition for the
header element, but I can't get it to use a named
definition for the main page (the action forward). See
the files below. If I set the forward for "input1" to
wiz1.jsp, then it works fine. But I want to use the
definition "wiz1" and avoid having a wiz1.jsp. When I
set the action forward to "wiz1" I get a file not
found error.

Things are basically working since the header
definition works. But the page definition isn't.

Ideas?

Thanks,

Dave

------------------
tiles-defs.xml:
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles
Configuration//EN"
      
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>

<!-- Definitions for Tiles documentation   -->

<tiles-definitions>

    <!--
=======================================================
 -->
    <!-- Master definition                                                             
         -->
    <!--
=======================================================
 -->
    <definition name="header"
path="/WEB-INF/views/common/header.jsp"/>

    <definition name="wiz1"
path="/WEB-INF/views/layout/BodyOnlyLayout.jsp">
        <put name="title" value="Fed Debt Sample
Wizard - Page 1 - defn"/>
        <put name="header" value="header"/>
        <put name="footer"
value="/WEB-INF/views/common/footer.jsp"/>
        <put name="body"
value="/WEB-INF/views/body/wizardPage1.jsp"/>
    </definition>

</tiles-definitions>


------------------
wiz1.jsp:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>

<tiles:insert
page="/WEB-INF/views/layout/BodyOnlyLayout.jsp"
flush="true">
<tiles:put name="title"  value="Fed Debt Sample Wizard
- Page 1" />
<tiles:put name="header" value="header" />
<tiles:put name="footer"
value="/WEB-INF/views/common/footer.jsp" />
<tiles:put name="body"  
value="/WEB-INF/views/body/wizardPage1.jsp" />
</tiles:insert>


---------------------
struts-config.xml:

    <action-mappings>
        <action path="/multi"
type="gov.treas.fms.feddebt.web.action.SampleWizardAction"
name="sampleForm" scope="session" validate="false">
            <forward name="success"
path="/WEB-INF/views/successPage.jsp"/>
            <forward name="input1" path="wiz1"/>
            <forward name="input2"
path="/WEB-INF/views/multiPage2.jsp"/>
        </action>
        
        
        


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to