tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vernon <vwu...@yahoo.com>
Subject Re: How this NoSuchDefinitionException occurs?
Date Thu, 06 Mar 2008 17:15:10 GMT
Hi, Antonio,

The definition is the followings:

    <!-- ** this page is fine **-->
    <definition name="news.bbc.world"
extends="news.template">
        <put-attribute name="title"     value="World
News"/>
        <put-attribute name="content"
value="content.bbc.world" 
type="definition"/>
        <put-attribute name="menu"     
value="/WEB-INF/jsp/news/world/menu03.jsp"
type="template"/>
    </definition>
    <definition name="content.bbc.world" 
template="/WEB-INF/jsp/news/world/bbc/content.jsp" >
        <put-attribute name="news1"
value="bbcWorldNews" type="definition"/>
    </definition>   
    <definition name="bbcWorldNews"
extends="news_section">
        <put-attribute name="sourceName"
value="bbc.w"/>
    </definition>

   <!-- ** this page is not **-->
    <definition name="news.yahoo.world.us"
extends="news.bbc.world">
        <put-attribute name="content"
value="content.yahoo.world.us" 
type="definition"/>
    </definition>
    <definition name="content.yahoo.world.us" 
template="/WEB-INF/jsp/news/world/yahoo/content.jsp" >
        <put-attribute name="news1"
value="yahooWorldNewsUS" 
type="definition"/>
    </definition>   
    <definition name="yahooWorldNewsUS"
extends="news_section">
        <put-attribute name="sourceName"
value="yahoo.w.us"/>
    </definition>

And the JSP file
/WEB-INF/jsp/news/world/bbc/content.jsp or 
/WEB-INF/jsp/news/world/yahoo/content.jsp:

<%@ page session="false"%>
<%@ taglib prefix="tiles"
uri="http://tiles.apache.org/tags-tiles" %>
<%@ include file="/WEB-INF/jsp/share/include_sp.jsp"
%>


    <div id="main">
            <div id="contents">
                <tiles:insertAttribute name="news1"/>
            </div>
    </div>



Antonio Petrelli wrote:
> Let's start again, since the path that I followed is
not correct :-(
>
> 2008/3/5, Vernon <vwu725@yahoo.com>:
>   
>>  Among a set of similar Tiles setting, only two of
them
>>  run into this
>>  error. I am unable to tell any difference between
>>  those two and the rest.
>>     
>
> Can I see the definition of these faulty Tiles
settings, and the
> involved JSP pages?
>
> Thanks
> Antonio
>
>
>   



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Mime
View raw message