Vernon,

>From your tiles definition I am just not seeing where you define
"xinhuaFashion" as a definition.  I see you define "xFashion" to extend
"news" but not "xinhuaFashion".  Did you forget to include this in your
cut/paste request for help?  You wrote that "xFashion" was valid according
to your test but I'm failing to see "xinhuaFashion" which is the name you
listed you were trying to include as a definition.  If you made some bean be
"xinhuaFashion" then you should probably try declaring it as a definition in
your tiles definition xml file.

Regards,
David

-----Original Message-----
From: Vernon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 8:10 PM
To: user@struts.apache.org
Subject: [Tiles] Why it is null?


I get quite frustrated with a Tiles problem. After
dealing with it for a few of days, I can't figure out
the cause of this null expection.

In my Tiles definition XML file, I have

        <definition name="news"
page="/WEB-INF/jsp/news/news.jsp"
controllerClass="com.xxx.NewsComponentController">
                <put name="size" value="10"/>
                <put name="sourceName" value="CHANGE-ME"/>
        </definition>


        <definition name="news.gb.fashion"
extends="news.gb.headlines">
                <put name="title"       value="Fashion News"/>
                <put name="content" value="content.gb.fashion"
type="definition"/>
                <put name="menu"
value="/WEB-INF/jsp/news/gb/fashion/menu.jsp"
type="page"/>
        </definition>
        <definition name="content.gb.fashion"
page="/WEB-INF/jsp/news/content1.jsp" >
                <put name="newsOne" value="xinhuaFashion"
type="definition"/>
        </definition>
        <definition name="xFashion" extends="news">
                <put name="sourceName" value="xFashion"/>
        </definition>

and the content1.jsp file is as:

<%@ taglib prefix="tiles"
uri="http://jakarta.apache.org/struts/tags-tiles"; %>
        <tiles:insert name="newsOne"/>

and in cases, I get this expection:

ERROR
org.apache.struts.taglib.tiles.InsertTag.doEndTag:920
- ServletException in
'/WEB-INF/jsp/news/content1.jsp': ServletException in
'/WEB-INF/jsp/news/news.jsp': null
javax.servlet.ServletException: ServletException in
'/WEB-INF/jsp/news/news.jsp': null
        at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:848)
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:781)
        at
org.apache.jsp.WEB_002dINF.jsp.news.content1_jsp._jspService(org.apache.jsp.
WEB_002dINF.jsp.news.content1_jsp:62)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...

The value of "xFashion" is valid according to my test.
Can someone point out the cause here?

The release day is approaching. Thanks for your helps
in advance.

v.




____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs


---------------------------------------------------------------------
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]

Reply via email to