>There are some missing details. But here I am supposing that "bar.jsp" >is your test JSP page and "parent.jsp" is the page where you put ><tiles:insert definition="foo" />. If this is not the case please let me >know. >Well, in this case, you forgot to fillup the "foo" attribute in "bar.jsp" "parent.jsp" is a test page where I want to import the content of "bar.jsp". "bar.jsp" contains only the string "testing" - no XML, JSP, HTML.
The reason I did not put <tiles:insert definition="foo"> in the JSP is because on this page: http://struts.apache.org/1.3.5/struts-tiles/examples.html it recommends that the definitions be put in tiles-defs.xml, not in the JSP, which is what I did in Struts 1.2.9 Steve -----Original Message----- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 12:52 AM To: Struts Users Mailing List Subject: Re: struts 1.3.5 tiles question Steve Duran ha scritto: > <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" > %> > > <html> > <head> > <title>FooBar</title> > </head> > <body> > <tiles:insert attribute="foo"/> > </body> > </html> > > > Here's my tiles-defs.xml: > > <?xml version="1.0" encoding="ISO-8859-1" ?> > > <!DOCTYPE tiles-definitions PUBLIC > "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN" > "http://struts.apache.org/dtds/tiles-config_1_3.dtd"> > > <tiles-definitions> > <definition name="foo" path="/bar.jsp" > > </definition> > </tiles-definitions> > ... > > root cause > > java.lang.NullPointerException > > org.apache.struts.tiles.taglib.InsertTag.processAttribute(InsertTag.ja > va > :687) > There are some missing details. But here I am supposing that "bar.jsp" is your test JSP page and "parent.jsp" is the page where you put <tiles:insert definition="foo" />. If this is not the case please let me know. Well, in this case, you forgot to fillup the "foo" attribute in "bar.jsp" HTH Antonio ************************************************************************************************** CONFIDENTALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information protected from disclosure by law. It is intended only for the use of the specified recipients. Any unauthorized review, use, disclosure, distribution or any action based on this material is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]