Pls see the sample tiles-def.xml file attached with this mail. check if
theis can help you !!



----- Original Message ----- 
From: "Morten Andersen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 6:02 PM
Subject: Re: tiles - setup


> Thanks a lot. I checked the xml files and found the following errors:
>     * The <?xml version... part on the tilesDefinitions.xml file was on
> line 2.. Should have been on line 1
>     * There was no DOCTYPE declaration in the tilesDefinitions.xml file...
>     * The tiles taglib- was not included...
> I wonder whether the error messages couldn't have been a bit more
> informative...
>
>
> Thanks a lot
>
> Morten Andersen
>
>
>
>
>
>
> At 12:21 24-11-2003, you wrote:
> >well all i can say is just check you have following lines of code in web
and
> >struts-config xml files. These are my configurations
> >
> >IN web.xml file
> >
> >   <taglib>
> >     <taglib-uri>/struts-tiles</taglib-uri>
> >     <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location>
> >   </taglib>
> >
> >
> >IN struts-config.xml  FILE
> >
> >     <plug-in className="org.apache.struts.tiles.TilesPlugin" >
> >         <set-property property="definitions-config"
> >value="/WEB-INF/tiles-defs.xml" />
> >         <set-property property="definitions-debug" value="0" />
> >         <set-property property="definitions-parser-details" value="0" />
> >         <set-property property="definitions-parser-validate"
value="true" />
> >     </plug-in>
> >
> >
> >Also,
> >
> >try to open your tiles-defs.xml file in your browser to check if it
showing
> >any error??
> >
> >Raman Garg
> >
> >
> >
> >
> >----- Original Message -----
> >From: "Morten Andersen" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, November 24, 2003 3:34 PM
> >Subject: tiles - setup
> >
> >
> > > I'm trying to use tiles with my existing struts application, but I can
't
> > > get the definitions to work.
> > >
> > > I've tryed using the following procedure:
> > >
> > > Add the tiles plugin to the struts-config.xml file by writing the
> >following
> > > just after the action mappings:
> > >
> > >   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
> > >    <set-property property="definitions-config"
> > > value="/WEB-INF/tileDefinitions.xml" />
> > >    <set-property property="definitions-debug" value="2" />
> > >    <set-property property="definitions-parser-details" value="2" />
> > >    <set-property property="definitions-parser-validate" value="true"
/>
> > > </plug-in>
> > >
> > > This causes the following errors to occur in tomcat:
> > >
> > > 1) Parse Fatal Error ... "The processing instuction target matching
> > > "[xX][mM][lL]" is not allowed.
> > > 2) SEVERE: Can't create Tiles definition factory for module ''.
> > >
> > > I think the latter is an effect from the first... But all I did was to
> > > copy-paste!...
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Morten Andersen
> > > Master of applied mathematics and computer science
> > > Amanuensis
> > > Interest areas:
> > >    -e-learning
> > >    -software engineering
> > >    -applied math
> > >
> > > The Maersk Institute of Production technology at Southern Danish
> >University
> > > www.mip.sdu.dk
> > > Campusvej 55
> > > DK-5230 Odense M
> > > Denmark
> > > +45 6550-3654
> > > +45 6171-1103
> > > Jabber id: [EMAIL PROTECTED]
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> Morten Andersen
> Master of applied mathematics and computer science
> Amanuensis
> Interest areas:
>    -e-learning
>    -software engineering
>    -applied math
>
> The Maersk Institute of Production technology at Southern Danish
University
> www.mip.sdu.dk
> Campusvej 55
> DK-5230 Odense M
> Denmark
> +45 6550-3654
> +45 6171-1103
> Jabber id: [EMAIL PROTECTED]
>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
        "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
<!--
<!DOCTYPE tiles-definitions SYSTEM "dtds/tiles-config_1_1.dtd">
-->

<tiles-definitions>

<!-- LAYOUTS -->

    <!-- MAIN LAYOUT -->
    <definition name="main-layout" path="/WEB-INF/jsp/layouts/mainTLCLayout.jsp">
        <put name="title" value="" type="string"/>
        <put name="menuBar" value="top-bar-layout" type="definition"/>
        <put name="leftBar" value=" " type="string"/>
        <put name="rightBar" value=" " type="string"/>
        <put name="topBar" value="/WEB-INF/jsp/common/MenuBar.jsp" type="page"/>
        <put name="content" value=" " type="string"/>
        <put name="footer" value=" " type="string"/>
        <put name="dateControl" value=" " type="string"/>       

    </definition>

<!-- VIEWES -->

    <!-- NON USER HOME VIEW -->
    <definition name="non-user-home" extends="main-layout">
        <put name="title" value="Welcome to EFIT.The only Lifestyle Management Tool" type="string"/>
        <put name="menuBar" value="/WEB-INF/jsp/common/nonUserHomeMenuBar.jsp" type="page"/>
        <put name="topBar" value="/WEB-INF/jsp/common/homeStandardMenuBar.jsp" type="page"/>
        <put name="content" value="/WEB-INF/jsp/viewes/nonUserHome/nonUserHomeContent.jsp" type="page"/>
    </definition>


<!-- ERROR VIEWES -->

    <!-- CRITICAL ERROR VIEW -->
    <definition name="critical-error" extends="main-layout">
        <put name="title" value="Houston, we have a problem...!" type="string"/>
        <put name="content" value="/WEB-INF/jsp/viewes/criticalError/criticalErrorContent.jsp" type="page"/>
    </definition>

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

Reply via email to