<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@tiles.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/tiles-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/tiles-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/tiles-users/</id>
<updated>2009-12-06T07:29:55Z</updated>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911300150p196c87a2h5cfebfd9d6fdd299@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911300150p196c87a2h5cfebfd9d6fdd299@mail-gmail-com%3e</id>
<updated>2009-11-30T09:50:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/30 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt; When I run in debug mode, my tiles
&gt; container is an instance of a BasicTilesContainer.  Within that instance, my
&gt; evaluator is an instance of the class
&gt; org.apache.tiles.evaluator.el.ELAttributeEvaluator@1a543937.

It's not so simple, ELAttributeEvaluator needs an instance of an ELResolver.
In Tiles 2.1 the correct instance is created with the call of
ELAttributeEvaluator.init method, or via the "setResolver" method.
In Tiles 2.2 only "setResolver" is available
(CompleteAutoloadTilesContainerFactory loads it too).
See if the resolver is a composite resolver containing all the needed
ones (see the source code for it).

Antonio

P.S. Thanks for opening that issue :-)


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Todd Nine &lt;todd.nine@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cd80862360911292225pad05ab4ibd7473e681273879@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd80862360911292225pad05ab4ibd7473e681273879@mail-gmail-com%3e</id>
<updated>2009-11-30T06:25:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Antonio,
  This is turning out to be a rough one!  When I run in debug mode, my tiles
container is an instance of a BasicTilesContainer.  Within that instance, my
evaluator is an instance of the class
org.apache.tiles.evaluator.el.ELAttributeEvaluator@1a543937.  From what I'm
looking at everything looks exactly as it should.  I'm running on Google App
Engine version 1.2.6, but I haven't seen anyone else with the problem.
Maybe I'm doing something wrong in my templates( it seems to be the only
thing left).

Here's what's in my default.jsp template for inserting the page title.

&lt;title&gt;&lt;tiles:getAsString name="title" ignore="true"/&gt;&lt;/title&gt;

Then, I have this in my default.xml layout.

    &lt;definition name="*/*" template="/WEB-INF/views/layouts/default.jsp"&gt;
        &lt;put-attribute name="title" value="${pageTitle}"/&gt;
        &lt;put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp"
/&gt;
        &lt;put-attribute name="menu" value="/WEB-INF/views/tiles/menu.jsp" /&gt;
        &lt;!--&lt;put-attribute name="body" value="/WEB-INF/views/parts/list.jsp"
/&gt;--&gt;
        &lt;put-attribute name="footer" value="/WEB-INF/views/tiles/footer.jsp"
/&gt;
    &lt;/definition&gt;

Finally, I have this in the edit.jsp, which is inserted dynamically as the
source for the "body" tile definition..

&lt;c:set var="pageTitle" value="Update Part Title"/&gt;

Thanks,
Todd

https://issues.apache.org/struts/browse/TILES-489

On Mon, Nov 30, 2009 at 3:04 AM, Antonio Petrelli &lt;
antonio.petrelli@gmail.com&gt; wrote:

&gt; 2009/11/29 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt; &gt; Note that the class name has a typo, the example displays
&gt; &gt;
&gt; &gt;
&gt;  &lt;param-value&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluatr&lt;/param-value&gt;
&gt; &gt;
&gt; &gt; But it should be
&gt; &gt;
&gt; &gt;
&gt;  &lt;param-value&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluator&lt;/param-value&gt;
&gt;
&gt; Thanks, can you open a JIRA issue for this?
&gt; https://issues.apache.org/struts/browse/TILES
&gt;
&gt; &gt; However, when my html is rendered, I have the variable ${pageTitle} in
&gt; &gt; my browser, not "Update Part Title" which i've set in my body content.
&gt; &gt;  What am I doing wrong?
&gt;
&gt; Sincerely I don't know, since Spring's TilesConfigurer is on the way
&gt; and I don't know what happens.
&gt; Can you debug the code and see why the ELAttributeResolver is not
&gt; loaded? Or at least, try to load your app without Spring to see if it
&gt; is a Spring or a Tiles problem.
&gt;
&gt; Antonio
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911290604y25c8b91dw97c57b88d4f8f82d@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911290604y25c8b91dw97c57b88d4f8f82d@mail-gmail-com%3e</id>
<updated>2009-11-29T14:04:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/29 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt; Note that the class name has a typo, the example displays
&gt;
&gt;  &lt;param-value&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluatr&lt;/param-value&gt;
&gt;
&gt; But it should be
&gt;
&gt;  &lt;param-value&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluator&lt;/param-value&gt;

Thanks, can you open a JIRA issue for this?
https://issues.apache.org/struts/browse/TILES

&gt; However, when my html is rendered, I have the variable ${pageTitle} in
&gt; my browser, not "Update Part Title" which i've set in my body content.
&gt;  What am I doing wrong?

Sincerely I don't know, since Spring's TilesConfigurer is on the way
and I don't know what happens.
Can you debug the code and see why the ELAttributeResolver is not
loaded? Or at least, try to load your app without Spring to see if it
is a Spring or a Tiles problem.

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Todd Nine &lt;todd.nine@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cd80862360911282016u718f98b9v10326d9eeaae3664@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd80862360911282016u718f98b9v10326d9eeaae3664@mail-gmail-com%3e</id>
<updated>2009-11-29T04:16:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi again Antonio,
  Sorry it's taken so long to respond, this is a pet project and I seem to
be short on time lately.  I've configured the servlet with the paramerts
specified here

http://tiles.apache.org/2.1/framework/tutorial/advanced/el-support.html

Note that the class name has a typo, the example displays

 &lt;param-value&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluatr&lt;/param-value&gt;

But it should be

 &lt;param-value&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluator&lt;/param-value&gt;


I have the following config in my spring configuration.  I know the
evaluator is getting set into the servlet, I stepped through the
spring code.


	&lt;!-- Tiles setup --&gt;
	&lt;bean id="tilesConfigurer"
		class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"&gt;
		&lt;property name="definitions"&gt;
			&lt;list&gt;
				&lt;value&gt;/WEB-INF/views/layouts/default.xml&lt;/value&gt;
			&lt;/list&gt;
		&lt;/property&gt;
		&lt;property name="tilesProperties"&gt;
		  &lt;props&gt;
		      &lt;prop key="org.apache.tiles.evaluator.AttributeEvaluator"&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluator&lt;/prop&gt;
		  &lt;/props&gt;
		&lt;/property&gt;
	&lt;/bean&gt;


	&lt;bean id="viewResolver"
		class="org.springframework.web.servlet.view.UrlBasedViewResolver"
		p:viewClass="com.onwebconsulting.inventory.web.spring.AutoTilesView" /&gt;

I then have this in my default.xml

&lt;tiles-definitions&gt;
	&lt;definition name="*/*" template="/WEB-INF/views/layouts/default.jsp"&gt;
	    &lt;put-attribute name="title" value="${pageTitle}"/&gt;
		&lt;put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp" /&gt;
		&lt;put-attribute name="menu" value="/WEB-INF/views/tiles/menu.jsp" /&gt;
		&lt;!--&lt;put-attribute name="body" value="/WEB-INF/views/parts/list.jsp" /&gt;--&gt;
		&lt;put-attribute name="footer" value="/WEB-INF/views/tiles/footer.jsp" /&gt;
	&lt;/definition&gt;
&lt;/tiles-definitions&gt;

And this in my "body" page, which is dynamically added via the
AutoTilesView class


&lt;c:set var="submit" value="Update Part"/&gt;
&lt;c:set var="pageTitle" value="Update Part Title"/&gt;
&lt;tiles:put name="pageTitle" type="string" value="Update Part" /&gt;

&lt;h2&gt;New Part&lt;/h2&gt;
&lt;%@ include file="/WEB-INF/views/parts/form.jsp" %&gt;

However, when my html is rendered, I have the variable ${pageTitle} in
my browser, not "Update Part Title" which i've set in my body content.
 What am I doing wrong?

Thanks again for all your help,
Todd



On Tue, Nov 17, 2009 at 9:38 PM, Antonio Petrelli &lt;
antonio.petrelli@gmail.com&gt; wrote:

&gt; 2009/11/17 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt; &gt; Thanks for the help Antonio.  I'm not quite sure how I can get the title.
&gt; &gt; I'ved used the Spring framework to inject my body jsp path based on the
&gt; &gt; Action path.  I'm using REST style urls, so I have a
&gt; &gt; &lt;controller&gt;/&lt;action&gt;(/&lt;other args&gt;)* syntax on all my calls.
 Getting
&gt; the
&gt; &gt; body dynamially injected only took the following.  However, I don't want
&gt; my
&gt; &gt; title's based on interception as that's part of the view.  Its not
&gt; possible
&gt; &gt; to "bubble" attributes from includes up to their parent?
&gt;
&gt; Mmm... Let me understand you.
&gt; You set the title somewhere in the Spring view, right? And you want to
&gt; use it as a Tiles definition.
&gt; Try using EL then:
&gt; http://tiles.apache.org/2.1/framework/tutorial/advanced/el-support.html
&gt;
&gt; Antonio
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: To use Velocity together with Tiles</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911250814m5282980atb599ca8f4ec3eeb8@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911250814m5282980atb599ca8f4ec3eeb8@mail-gmail-com%3e</id>
<updated>2009-11-25T16:14:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/25 firewood firewood &lt;firewood1986@gmail.com&gt;:
&gt; To access ".vm" files as attributes, register VelocityAttributeRenderer this
&gt; way (only available in a servlet environment)
&gt; How to register VelocityAttributeRenderer?

See: http://tiles.apache.org/framework/tutorial/integration/velocity.html
Notice that it says that you need to use Velocity 1.7 (not released)
but 1.6.2 works fine.

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>To use Velocity together with Tiles</title>
<author><name>firewood firewood &lt;firewood1986@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3c76abc23a0911250717h6129fe71pd959e35d92230b54@mail.gmail.com%3e"/>
<id>urn:uuid:%3c76abc23a0911250717h6129fe71pd959e35d92230b54@mail-gmail-com%3e</id>
<updated>2009-11-25T15:17:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To access ".vm" files as attributes, register VelocityAttributeRenderer this
way (only available in a servlet environment)
How to register VelocityAttributeRenderer?


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Including External Tiles in a Template</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911230752y4ba00bd4m72d93d82e24d38cc@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911230752y4ba00bd4m72d93d82e24d38cc@mail-gmail-com%3e</id>
<updated>2009-11-23T15:52:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/23 Brian Stewart &lt;Brian.Stewart@ahom.com&gt;:
&gt; What is the best way to include an external tile in a template definition?

There is no way, currently, to include an external resource at all.

&gt; &lt;definition name="layout.content " template="/WEB-INF/webtiles/search/searchLayout.jsp"&gt;
&gt;      &lt;put-attribute name="customer" type="redirect" value="/EXTERNAL/tiles/DisplayCustomerTile.jsp"
/&gt;
&gt; &lt;/definition&gt;

However you got the right path: probably the best way is to create a
renderer that manages external resources. For info about renderers
see:
http://tiles.apache.org/2.1/framework/tutorial/advanced/attribute-rendering.html
or
http://tiles.apache.org/framework/tutorial/advanced/attribute-rendering.html
(for Tiles 2.2.x)
You might be interested in the HTTPClient project, to connect to the resource:
http://hc.apache.org/httpcomponents-client/index.html

Ciao
Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Including External Tiles in a Template</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878874FDD40130@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878874FDD40130@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-23T15:43:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
What is the best way to include an external tile in a template definition?

For example, suppose I have an a web application called INTERNAL.  I have reusable view components
in another application called EXTERNAL.  So I want http://server:1234/INTERNAL/eligibilitySearch/search.action
to include a common customer tile located in the EXTERNAL application.  My definition I am
imagining would look something like this:

&lt;definition name="layout.content " template="/WEB-INF/webtiles/search/searchLayout.jsp"&gt;
      &lt;put-attribute name="customer" type="redirect" value="/EXTERNAL/tiles/DisplayCustomerTile.jsp"
/&gt;
&lt;/definition&gt;

Of course, the URL is not found, because value refers to the application context.  I know
there is not a type called redirect, but that is the type of functionality I'm looking for,
to reset the context so that an external tile can be included in the definition.

Regards,
Brian Stewart



This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Missing Documentation</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878874FDD3FE75@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878874FDD3FE75@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-23T15:27:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The issue has been documented.  Thanks as usual for your assistance Antonio.

TILES-488 - URL's need to be changed to point to updated location

Regards,
Brian Stewart 
Sr. Java Developer

-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com] 
Sent: Monday, November 23, 2009 9:18 AM
To: users@tiles.apache.org
Subject: Re: Missing Documentation

2009/11/23 Brian Stewart &lt;Brian.Stewart@ahom.com&gt;:
&gt; Thanks!  The url's came from http://tiles.apache.org/framework/index.html

Cool! You're right (and they're wrong :-D )
Can you open a JIRA issue please?
https://issues.apache.org/struts/browse/TILES

Thanks
Antonio
This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Missing Documentation</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911230718k147dc457xdaf50470dbe36c46@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911230718k147dc457xdaf50470dbe36c46@mail-gmail-com%3e</id>
<updated>2009-11-23T15:18:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/23 Brian Stewart &lt;Brian.Stewart@ahom.com&gt;:
&gt; Thanks!  The url's came from http://tiles.apache.org/framework/index.html

Cool! You're right (and they're wrong :-D )
Can you open a JIRA issue please?
https://issues.apache.org/struts/browse/TILES

Thanks
Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Missing Documentation</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878874FCC4613C@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878874FCC4613C@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-23T15:07:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks!  The url's came from http://tiles.apache.org/framework/index.html

Regards,
Brian Stewart 
Sr. Java Developer 
American Home Patient
(615)221-8566
Brian.Stewart@ahom.com
-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com] 
Sent: Monday, November 23, 2009 8:57 AM
To: users@tiles.apache.org
Subject: Re: Missing Documentation

2009/11/23 Brian Stewart &lt;Brian.Stewart@ahom.com&gt;:
&gt; Antonio,
&gt; Do you know where the taglib documentation has gone?
&gt; http://tiles.apache.org/framework/tlddoc/index.html

http://tiles.apache.org/2.1/framework/tiles-jsp/tlddoc/index.html

&gt; http://tiles.apache.org/framework/dtddoc/index.html

http://tiles.apache.org/2.1/framework/tiles-core/dtddoc/index.html

However, where did you get these URLs? Are they outdated bookmarks or
links inside the website?
In the latter case I would like to fix them.

Antonio
This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Missing Documentation</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911230656o74c12b31y622bddb83c139465@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911230656o74c12b31y622bddb83c139465@mail-gmail-com%3e</id>
<updated>2009-11-23T14:56:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/23 Brian Stewart &lt;Brian.Stewart@ahom.com&gt;:
&gt; Antonio,
&gt; Do you know where the taglib documentation has gone?
&gt; http://tiles.apache.org/framework/tlddoc/index.html

http://tiles.apache.org/2.1/framework/tiles-jsp/tlddoc/index.html

&gt; http://tiles.apache.org/framework/dtddoc/index.html

http://tiles.apache.org/2.1/framework/tiles-core/dtddoc/index.html

However, where did you get these URLs? Are they outdated bookmarks or
links inside the website?
In the latter case I would like to fix them.

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Missing Documentation</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878874FCC45C2F@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878874FCC45C2F@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-23T14:33:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Antonio, 
Do you know where the taglib documentation has gone?
http://tiles.apache.org/framework/tlddoc/index.html
http://tiles.apache.org/framework/dtddoc/index.html

Regards,
Brian Stewart

This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911170038l79903078j8dd1823406463211@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911170038l79903078j8dd1823406463211@mail-gmail-com%3e</id>
<updated>2009-11-17T08:38:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/17 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt; Thanks for the help Antonio.  I'm not quite sure how I can get the title.
&gt; I'ved used the Spring framework to inject my body jsp path based on the
&gt; Action path.  I'm using REST style urls, so I have a
&gt; &lt;controller&gt;/&lt;action&gt;(/&lt;other args&gt;)* syntax on all my calls.  Getting
the
&gt; body dynamially injected only took the following.  However, I don't want my
&gt; title's based on interception as that's part of the view.  Its not possible
&gt; to "bubble" attributes from includes up to their parent?

Mmm... Let me understand you.
You set the title somewhere in the Spring view, right? And you want to
use it as a Tiles definition.
Try using EL then:
http://tiles.apache.org/2.1/framework/tutorial/advanced/el-support.html

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Todd Nine &lt;todd.nine@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cd80862360911162024h65e8335coce5b322a2a5e791a@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd80862360911162024h65e8335coce5b322a2a5e791a@mail-gmail-com%3e</id>
<updated>2009-11-17T04:24:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the help Antonio.  I'm not quite sure how I can get the title.
I'ved used the Spring framework to inject my body jsp path based on the
Action path.  I'm using REST style urls, so I have a
&lt;controller&gt;/&lt;action&gt;(/&lt;other args&gt;)* syntax on all my calls.  Getting the
body dynamially injected only took the following.  However, I don't want my
title's based on interception as that's part of the view.  Its not possible
to "bubble" attributes from includes up to their parent?

Thanks,
Todd



public class AutoTilesView extends TilesView {

    private static final String BODY_KEY = "body";
    private static final String PREFIX = "/WEB-INF/views/";
    private static final String SUFFIX = ".jsp";

    /* (non-Javadoc)
     * @see
org.springframework.web.servlet.view.tiles2.TilesView#renderMergedOutputModel(java.util.Map,
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
     */
    @Override
    protected void renderMergedOutputModel(Map&lt;String, Object&gt; model,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        //get the body tag and insert it into the context before calling the
super.

        ServletContext servletContext = getServletContext();
        TilesContainer container = ServletUtil.getContainer(servletContext);

        if (container == null) {
            throw new ServletException("Tiles container is not initialized.
" +
                    "Have you added a TilesConfigurer to your web
application context?");
        }

        AttributeContext attributeContext =
container.getAttributeContext(request,
                response);

        StringBuilder builder = new StringBuilder();
        builder.append(PREFIX);
        builder.append(this.getUrl());
        builder.append(SUFFIX);


        attributeContext.putAttribute(BODY_KEY,
Attribute.createTemplateAttribute(builder.toString()));

        super.renderMergedOutputModel(model, request, response);
    }


}


On Mon, Nov 16, 2009 at 2:03 AM, Antonio Petrelli &lt;
antonio.petrelli@gmail.com&gt; wrote:

&gt; 2009/11/15 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt; &gt;  I extend an existing spring class to dynamically
&gt; &gt; determine which page will be defined as the "body" definition.  This
&gt; works
&gt; &gt; well.  However I want each of my body pages to define what the title will
&gt; be
&gt; &gt; on the layout page.
&gt;
&gt; I think that you may solve both of your needs (custom body and custom
&gt; title) by using a preparer and/or a placeholder:
&gt;
&gt;    &lt;definition name="*/prefix*"
&gt; template="/WEB-INF/views/layouts/default.jsp" preparer="my.Preparer"&gt;
&gt;         &lt;put-attribute name="title" value="Default Title"/&gt;
&gt;        &lt;put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp"
&gt;  /&gt;
&gt;        &lt;put-attribute name="menu" value="/WEB-INF/views/tiles/menu.jsp" /&gt;
&gt;        &lt;put-attribute name="footer" value="/WEB-INF/views/tiles/footer.jsp"
&gt;         &lt;put-attribute name="body" value="/WEB-INF/edit/{2}.jsp" /&gt;
&gt; /&gt;
&gt;    &lt;/definition&gt;
&gt;
&gt; You can even mix the placeholders with the preparer name.
&gt; See:
&gt; http://tiles.apache.org/framework/tutorial/advanced/preparer.html
&gt; http://tiles.apache.org/framework/tutorial/advanced/wildcard.html
&gt;
&gt; HTH
&gt; Antonio
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Tiles Definition Files From a Jar or War</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878873215722EA@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878873215722EA@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-16T22:24:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I've set this up using ANT/Ivy by implementing a "buildDependencies.xml" that is run before
development begins.  The developer is expected to have the common project already in their
environment before running the script.  It copies the common assembly instructions and common
jsp files from common, then runs ivy to bring in the jar dependencies.  Something else I've
done in the past, but haven't implemented it here yet is to wrap the CVS command line call
in Java to check out the common project, and have ant call that before copying the dependencies.
 This way, all the developer has to do after checking their project out of the repository
is remember to run the buildDependencies script.

Regards,
Brian Stewart

-----Original Message-----
From: Rick Mangi [mailto:Rick.Mangi@nick.com] 
Sent: Monday, November 16, 2009 4:17 PM
To: users@tiles.apache.org
Subject: Re: Tiles Definition Files From a Jar or War

We use maven with war overlays to pull in the shared definitions. The shared
code is in a war file that is included as a maven dependency for our actual
web projects.


On 11/16/09 5:15 PM, "JasonKissinger" &lt;jason.kissinger@bsci.com&gt; wrote:

&gt; 
&gt; Sounds great Rick.  I'm heading down the same path.
&gt; 
&gt; How do you setup your development environments so that this is seamless for
&gt; developers?
&gt; 
&gt; Ideally I'd like to be able to checkout the common project along with a site
&gt; project and the merging gets handled behind the scenes (similar to how
&gt; Eclipse WST dependent-module works for classes, but this creates a
&gt; WEB-INF/lib/&lt;project&gt;.jar on publish).
&gt; 
&gt; 
&gt; 
&gt; Rick Mangi-2 wrote:
&gt;&gt; 
&gt;&gt; :-)
&gt;&gt; 
&gt;&gt; Not sure about Ivy, but I imagine you could definitely duplicate this
&gt;&gt; functionality with ant.
&gt;&gt; 
&gt;&gt; FWIF we use a custom extension to Spring's TileConfigurer to do our
&gt;&gt; wildcard
&gt;&gt; inclusions so they can be configured in a spring applicationContext. This
&gt;&gt; allows us to share common tiles definitions across multiple sites and then
&gt;&gt; extend them on a site-by-site basis. It works very nicely.
&gt;&gt; 
&gt;&gt; Rick
&gt;&gt; 
&gt;&gt; 

This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles Definition Files From a Jar or War</title>
<author><name>Rick Mangi &lt;Rick.Mangi@nick.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cC7273998.29570%25Rick.Mangi@nick.com%3e"/>
<id>urn:uuid:%3cC7273998-29570%25Rick-Mangi@nick-com%3e</id>
<updated>2009-11-16T22:17:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
We use maven with war overlays to pull in the shared definitions. The shared
code is in a war file that is included as a maven dependency for our actual
web projects.


On 11/16/09 5:15 PM, "JasonKissinger" &lt;jason.kissinger@bsci.com&gt; wrote:

&gt; 
&gt; Sounds great Rick.  I'm heading down the same path.
&gt; 
&gt; How do you setup your development environments so that this is seamless for
&gt; developers?
&gt; 
&gt; Ideally I'd like to be able to checkout the common project along with a site
&gt; project and the merging gets handled behind the scenes (similar to how
&gt; Eclipse WST dependent-module works for classes, but this creates a
&gt; WEB-INF/lib/&lt;project&gt;.jar on publish).
&gt; 
&gt; 
&gt; 
&gt; Rick Mangi-2 wrote:
&gt;&gt; 
&gt;&gt; :-)
&gt;&gt; 
&gt;&gt; Not sure about Ivy, but I imagine you could definitely duplicate this
&gt;&gt; functionality with ant.
&gt;&gt; 
&gt;&gt; FWIF we use a custom extension to Spring's TileConfigurer to do our
&gt;&gt; wildcard
&gt;&gt; inclusions so they can be configured in a spring applicationContext. This
&gt;&gt; allows us to share common tiles definitions across multiple sites and then
&gt;&gt; extend them on a site-by-site basis. It works very nicely.
&gt;&gt; 
&gt;&gt; Rick
&gt;&gt; 
&gt;&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles Definition Files From a Jar or War</title>
<author><name>JasonKissinger &lt;jason.kissinger@bsci.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3c26379912.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26379912-post@talk-nabble-com%3e</id>
<updated>2009-11-16T22:15:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Sounds great Rick.  I'm heading down the same path.

How do you setup your development environments so that this is seamless for
developers?

Ideally I'd like to be able to checkout the common project along with a site
project and the merging gets handled behind the scenes (similar to how
Eclipse WST dependent-module works for classes, but this creates a
WEB-INF/lib/&lt;project&gt;.jar on publish).



Rick Mangi-2 wrote:
&gt; 
&gt; :-)
&gt; 
&gt; Not sure about Ivy, but I imagine you could definitely duplicate this
&gt; functionality with ant.
&gt; 
&gt; FWIF we use a custom extension to Spring's TileConfigurer to do our
&gt; wildcard
&gt; inclusions so they can be configured in a spring applicationContext. This
&gt; allows us to share common tiles definitions across multiple sites and then
&gt; extend them on a site-by-site basis. It works very nicely.
&gt; 
&gt; Rick
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Tiles-Definition-Files-From-a-Jar-or-War-tp26012871p26379912.html
Sent from the tiles users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles 2.1.4 Validation</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911160834y37c3dd78x5c19ccf3dca96979@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911160834y37c3dd78x5c19ccf3dca96979@mail-gmail-com%3e</id>
<updated>2009-11-16T16:34:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/16 CRANFORD, CHRIS &lt;Chris.Cranford@setech.com&gt;:
&gt; I even verified this definition from the tiles test 2.1.4 web application which I have
deployed.  Ironically enough the tiles test webapp does not throw this exception, which makes
me wonder if it is a side affect of integrating struts2, tiles2, and spring in some fashion
or a poor configuration on my part.

This is really strange, and I don't think that it is a poor configuration.
I think that there is a bug somewhere but I don't know where.
Can you open a JIRA issue attaching a test case, preferably in maven format?

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Tiles 2.1.4 Validation</title>
<author><name>&quot;CRANFORD, CHRIS&quot; &lt;Chris.Cranford@setech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cFE86CC5ABCF88F45A9905BE2C1A5451808E20F9F@shqsr15a.setechusa.com%3e"/>
<id>urn:uuid:%3cFE86CC5ABCF88F45A9905BE2C1A5451808E20F9F@shqsr15a-setechusa-com%3e</id>
<updated>2009-11-16T16:02:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Antonio -

I had checked this prior, but yes they both exist in the tiles-core-2.1.4.jar file as indicated
below:

15492  10-13-09  21:29   org/apache/tiles/resources/tiles-config_2_1.dtd
13610  10-13-09  21:29   org/apache/tiles/resources/tiles-config_2_0.dtd

The DOCTYPE tag I had prior was:

&lt;!DOCTYPE tiles-definitions PUBLIC
	"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
	"http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;

I even verified this definition from the tiles test 2.1.4 web application which I have deployed.
 Ironically enough the tiles test webapp does not throw this exception, which makes me wonder
if it is a side affect of integrating struts2, tiles2, and spring in some fashion or a poor
configuration on my part.  

So far the only resolution I have been able to come by is to define my DOCTYPE tag as follows:

&lt;!DOCTYPE tiles-definitions PUBLIC
	"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
	"..\webapps\seek\WEB-INF\tiles-config_2_1.dtd" &gt;

Naturally I'd rather not have to do this if I can afford not to do so, but if it is the only
resolution, I will deal and document it.  

Any other places you suggest I check?

&gt; -----Original Message-----
&gt; From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com]
&gt; Sent: Monday, November 16, 2009 9:36 AM
&gt; To: users@tiles.apache.org
&gt; Subject: Re: Tiles 2.1.4 Validation
&gt; 
&gt; 2009/11/16 CRANFORD, CHRIS &lt;Chris.Cranford@setech.com&gt;:
&gt; &gt; It appears that Tiles 2.1.4 is trying to validate the tiles.xml against
&gt; &gt; the DTD when Tomcat starts.  Unfortunately our Tomcat server sits behind
&gt; &gt; a proxy server and is incapable of making request externally.
&gt; 
&gt; It should not happen, because Tiles tries to load DTD internally, by
&gt; configuring the digester.
&gt; This DTD is in tiles-core jar. Can you try to open with a zip
&gt; extractor to see if it is there?
&gt; They are in:
&gt; org/apache/tiles/resources/
&gt; 
&gt; Antonio




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles 2.1.4 Validation</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911160735o78b28a53oacf967bca0751be7@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911160735o78b28a53oacf967bca0751be7@mail-gmail-com%3e</id>
<updated>2009-11-16T15:35:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/16 CRANFORD, CHRIS &lt;Chris.Cranford@setech.com&gt;:
&gt; It appears that Tiles 2.1.4 is trying to validate the tiles.xml against
&gt; the DTD when Tomcat starts.  Unfortunately our Tomcat server sits behind
&gt; a proxy server and is incapable of making request externally.

It should not happen, because Tiles tries to load DTD internally, by
configuring the digester.
This DTD is in tiles-core jar. Can you try to open with a zip
extractor to see if it is there?
They are in:
org/apache/tiles/resources/

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Tiles 2.1.4 Validation</title>
<author><name>&quot;CRANFORD, CHRIS&quot; &lt;Chris.Cranford@setech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cFE86CC5ABCF88F45A9905BE2C1A5451808E20F94@shqsr15a.setechusa.com%3e"/>
<id>urn:uuid:%3cFE86CC5ABCF88F45A9905BE2C1A5451808E20F94@shqsr15a-setechusa-com%3e</id>
<updated>2009-11-16T15:25:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It appears that Tiles 2.1.4 is trying to validate the tiles.xml against
the DTD when Tomcat starts.  Unfortunately our Tomcat server sits behind
a proxy server and is incapable of making request externally.  I have
tried to use local path name conventions in the DTD DOCTYPE tag to
specify a local copy of the DTD, but it appears that Tomcat always tries
to reference from the bin\ directory.

How can I get my DOCTYPE tag to reference my DTD in webapp\WEB-INF\DTD\
? 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: myfaces 1.2.7 error with tiles 2.0.5</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911160559p47dc74dat5ab1ec662d353db1@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911160559p47dc74dat5ab1ec662d353db1@mail-gmail-com%3e</id>
<updated>2009-11-16T13:59:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/16 SOFTOCEAN &lt;softocean@gmail.com&gt;:
&gt; I am using struts tiles 1.2.8 in my project via Tomahawk 1.1.6 with Myfaces
&gt; 1.1.5. Recently I changed to myFaces 1.2.7(latest), Tomahawk 1.1.9. I used
&gt; Tiles 2.0.5 and what I see now it generates error…
&gt;
&gt; “Servlet.service() for servlet jsp threw exception
&gt;
&gt; java.lang.IllegalArgumentException: Component
&gt; javax.faces.component.UIViewRoot is no
&gt; javax.faces.component.html.HtmlOutputText”

You should ask the MyFaces users mailing list, where the Tiles view
handler is developed:
http://myfaces.apache.org/mail-lists.html

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>myfaces 1.2.7 error with tiles 2.0.5</title>
<author><name>SOFTOCEAN &lt;softocean@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3c26372276.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26372276-post@talk-nabble-com%3e</id>
<updated>2009-11-16T13:55:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi All,

 

I am using struts tiles 1.2.8 in my project via Tomahawk 1.1.6 with Myfaces
1.1.5. Recently I changed to myFaces 1.2.7(latest), Tomahawk 1.1.9. I used
Tiles 2.0.5 and what I see now it generates errorâ€¦

â€śServlet.service() for servlet jsp threw exception

java.lang.IllegalArgumentException: Component
javax.faces.component.UIViewRoot is no
javax.faces.component.html.HtmlOutputTextâ€ť

 

To check where Is the problem I run my application  with MyFaces 1.2.7 and
Tomahawk 1.1.9 without tiles 2.0.5 itâ€™s working. 

 

Following combination is working..

            Myfaces 1.1.5

            Tomahawk 1.1.6

            Struts 1.2.8

 

Does not workâ€¦

            Myfaces 1.2.7

            Tomahawk 1.1.9

            Tiles 2.0.5

 

Please let me know if someone helps.

 

Thanks 

 


-- 
View this message in context: http://old.nabble.com/myfaces-1.2.7-error-with-tiles-2.0.5-tp26372276p26372276.html
Sent from the tiles users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles 2.0.x</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911151141t9528ceak4343f91080278995@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911151141t9528ceak4343f91080278995@mail-gmail-com%3e</id>
<updated>2009-11-15T19:41:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/15 Chris Cranford &lt;crancran@gmail.com&gt;:
&gt; And by upgrading to 2.1.4 Tiles, that means I define it as cascade in
&gt; my definition and I can use it in header.jsp without any other special
&gt; work?

Yes, with a minor correction: you define *attributes* as cascaded:
http://tiles.apache.org/2.1/framework/tutorial/advanced/nesting-extending.html#Cascaded_attributes

HTH
Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles 2.0.x</title>
<author><name>Chris Cranford &lt;crancran@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3c31850ba90911150902l795fa5bfx9aeeca4fa687daab@mail.gmail.com%3e"/>
<id>urn:uuid:%3c31850ba90911150902l795fa5bfx9aeeca4fa687daab@mail-gmail-com%3e</id>
<updated>2009-11-15T17:02:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
And by upgrading to 2.1.4 Tiles, that means I define it as cascade in
my definition and I can use it in header.jsp without any other special
work?

On Sun, Nov 15, 2009 at 7:08 AM, Antonio Petrelli
&lt;antonio.petrelli@gmail.com&gt; wrote:
&gt; 2009/11/15 Chris Cranford &lt;crancran@gmail.com&gt;:
&gt;&gt; &lt;tiles:insertAttribute name="header"&gt;
&gt;&gt;  &lt;tiles:putAttribute name="title"&gt;&lt;tiles:getAsString
&gt;&gt; name="title"/&gt;&lt;/tiles:putAttribute&gt;
&gt;&gt; &lt;/tiles:insertAttribute&gt;
&gt;
&gt; Change it into:
&gt;
&gt; &lt;tiles:importAttribute name="title" /&gt;
&gt; &lt;tiles:insertAttribute name="header"&gt;
&gt;  &lt;tiles:putAttribute name="title"&gt;&lt;c:out value="${title}"
&gt; /&gt;&lt;/tiles:putAttribute&gt;
&gt; &lt;/tiles:insertAttribute&gt;
&gt;
&gt; However, I suggest to upgrade to Tiles 2.1.x so you can use the
&gt; cascaded attributes.
&gt;
&gt; Antonio
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Tiles 2.0.x</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911150508w39d83711i3d878c9a14b0dd5d@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911150508w39d83711i3d878c9a14b0dd5d@mail-gmail-com%3e</id>
<updated>2009-11-15T13:08:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/15 Chris Cranford &lt;crancran@gmail.com&gt;:
&gt; &lt;tiles:insertAttribute name="header"&gt;
&gt;  &lt;tiles:putAttribute name="title"&gt;&lt;tiles:getAsString
&gt; name="title"/&gt;&lt;/tiles:putAttribute&gt;
&gt; &lt;/tiles:insertAttribute&gt;

Change it into:

&lt;tiles:importAttribute name="title" /&gt;
&lt;tiles:insertAttribute name="header"&gt;
  &lt;tiles:putAttribute name="title"&gt;&lt;c:out value="${title}"
/&gt;&lt;/tiles:putAttribute&gt;
&lt;/tiles:insertAttribute&gt;

However, I suggest to upgrade to Tiles 2.1.x so you can use the
cascaded attributes.

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Help with inserting title pages on dynamic template construction</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911150503v259b7938ke664d569131ace39@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911150503v259b7938ke664d569131ace39@mail-gmail-com%3e</id>
<updated>2009-11-15T13:03:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/15 Todd Nine &lt;todd.nine@gmail.com&gt;:
&gt;  I extend an existing spring class to dynamically
&gt; determine which page will be defined as the "body" definition.  This works
&gt; well.  However I want each of my body pages to define what the title will be
&gt; on the layout page.

I think that you may solve both of your needs (custom body and custom
title) by using a preparer and/or a placeholder:

    &lt;definition name="*/prefix*"
template="/WEB-INF/views/layouts/default.jsp" preparer="my.Preparer"&gt;
        &lt;put-attribute name="title" value="Default Title"/&gt;
        &lt;put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp"
 /&gt;
        &lt;put-attribute name="menu" value="/WEB-INF/views/tiles/menu.jsp" /&gt;
        &lt;put-attribute name="footer" value="/WEB-INF/views/tiles/footer.jsp"
        &lt;put-attribute name="body" value="/WEB-INF/edit/{2}.jsp" /&gt;
/&gt;
    &lt;/definition&gt;

You can even mix the placeholders with the preparer name.
See:
http://tiles.apache.org/framework/tutorial/advanced/preparer.html
http://tiles.apache.org/framework/tutorial/advanced/wildcard.html

HTH
Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Tiles 2.0.x</title>
<author><name>Chris Cranford &lt;crancran@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3c31850ba90911150039x5a9885f1u6fb37d8bd0798ae1@mail.gmail.com%3e"/>
<id>urn:uuid:%3c31850ba90911150039x5a9885f1u6fb37d8bd0798ae1@mail-gmail-com%3e</id>
<updated>2009-11-15T08:39:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Lets assume my tiles.xml file contained the following

&lt;definition name="tiles:layout"
template="/WEB-INF/pages/layouts/default/layout.jsp"&gt;
	&lt;put-attribute name="title" 	value="Please set your page title!"
cascade="true" /&gt;
	&lt;put-attribute name="header"
	value="/WEB-INF/pages/layouts/default/header.jsp"/&gt;
	&lt;put-attribute name="body" 		value="" /&gt;
	&lt;put-attribute
name="footer"	value="/WEB-INF/pages/layouts/default/footer.jsp" /&gt;
&lt;/definition&gt;

Each JSP page we implement contains a similar fragment to this:

&lt;tiles:insertDefinition name="tiles:layout"&gt;	
        &lt;tiles:putAttribute name="title" value="Login" /&gt;
	&lt;tiles:putAttribute name="body" value="/WEB-INF/pages/login-body.jsp"/&gt;
&lt;/tiles:insertDefinition&gt;

What I would like to be able to do is when the tiles framework renders
the "header" component in the main definition, I would like to be able
to reference the value in the "title" attribute of this definition
inside of the header.jsp file.

With the old version of tiles, I simply went into my layout.jsp and did this:

&lt;tiles:insertAttribute name="header"&gt;
  &lt;tiles:putAttribute name="title"&gt;&lt;tiles:getAsString
name="title"/&gt;&lt;/tiles:putAttribute&gt;
&lt;/tiles:insertAttribute&gt;

Then in header.jsp

&lt;tiles:importAttribute/&gt;
&lt;tiles:getAsString name="title"/&gt;

The problem is this isn't working with the 2.0.6 version of Tiles and
was curious what the proper way was to handle this so that I can set
title in the main definition but a fragment of the layout actually
uses it.


</pre>
</div>
</content>
</entry>
<entry>
<title>Help with inserting title pages on dynamic template construction</title>
<author><name>Todd Nine &lt;todd.nine@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cd80862360911142106o334021al337deded63e15472@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd80862360911142106o334021al337deded63e15472@mail-gmail-com%3e</id>
<updated>2009-11-15T05:06:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,
  I'm using Tiles 2 with a Spring MVC 3 project I'm creating.  I'm having a
bit of trouble getting attributes I want in to my pages.  I have only 1
layout and 1 definition file, default.jsp and default.xml.  I've included
the .jsp and xml below.  I extend an existing spring class to dynamically
determine which page will be defined as the "body" definition.  This works
well.  However I want each of my body pages to define what the title will be
on the layout page.  However, my variable is never picked up.  Here is my
definition.

default.xml

&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
&lt;!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;
&lt;tiles-definitions&gt;
    &lt;definition name="*/*" template="/WEB-INF/views/layouts/default.jsp"&gt;
        &lt;put-attribute name="title" value="Default Title"/&gt;
        &lt;put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp"
/&gt;
        &lt;put-attribute name="menu" value="/WEB-INF/views/tiles/menu.jsp" /&gt;
        &lt;put-attribute name="footer" value="/WEB-INF/views/tiles/footer.jsp"
/&gt;
    &lt;/definition&gt;
&lt;/tiles-definitions&gt;


default.jsp
&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%&gt;
&lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"&gt;

 &lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;&lt;tiles:getAsString name="title" ignore="true"/&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="content"&gt;
&lt;div id="header"&gt;&lt;tiles:insertAttribute name="header" /&gt;
&lt;div id="menu"&gt;&lt;tiles:insertAttribute name="menu" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="body"&gt;&lt;tiles:insertAttribute name="body" /&gt;&lt;/div&gt;
&lt;div id="footer"&gt;&lt;tiles:insertAttribute name="footer" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;


Body page definition parts/edit.jsp

&lt;c:set var="submit" value="Update Part"/&gt;
&lt;tiles:put name="title" type="string" value="Update Part" /&gt;

&lt;h2&gt;New Part&lt;/h2&gt;
&lt;%@ include file="/WEB-INF/views/parts/form.jsp" %&gt;

My title "Update Part" never appears when the layout is rendered.  What am I
doing wrong?  Any help would be greatly appreciated.

Thanks,
Todd


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: javax.servlet.ServletException: JSPException including path	'/layouts/template.jsp'.</title>
<author><name>Andy T &lt;verygoofyone@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cf405b3330911101014tf903928n4a1118cae144ded0@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf405b3330911101014tf903928n4a1118cae144ded0@mail-gmail-com%3e</id>
<updated>2009-11-10T18:14:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hey Brian,

What you say makes perfect sense . . . thanks for that . . .

I was wondering if we could go forward with making sure my logging is
working correctly now that I have a few moments?

Currently I have a log4j.properties file (contents shown below) in my
src folder.  I'm using RAD 7.5 for my development platform.

********************  log4j.properties file *********************

log4j.rootLogger=DEBUG, testAppender, stdout
log4j.appender.testAppender=com.webmethods.sc.logging.log4j.WmDailyFileAppender
log4j.appender.testAppender.file=log/test1.log
log4j.appender.testAppender.datePattern='.'yyyy-MM-dd_HH_mm
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=com.webmethods.sc.log4j.PatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%m%n
log4j.appender.testAppender.stdout.Target=System.out

# configuration for the console appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p [%d] (%c:%L) - %m%n

log4j.rootLogger=warn, stdout

#log4j.logger.org.hibernate=info
log4j.logger.org.hibernate=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=debug

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=debug

I also have a logging.properties file (in the same location) whose contents is:

********************  logging.properties file *********************

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = servlet-examples.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

That's what I have so far . . . If you'd like me to email you directly
instead of to the Tiles group just let me know.

Thanks,

Andy





On Tue, Nov 10, 2009 at 11:05 AM, Brian Stewart &lt;Brian.Stewart@ahom.com&gt; wrote:
&gt; Andy,
&gt;
&gt; I can help you with the logging, you're right that it will greatly assist you in debugging
your app.
&gt;
&gt; In the mean time I can point out two things that might help.
&gt;
&gt; 1. I'll paste an adaption of your tiles-defs that uses "extends" to make it a little
simpler
&gt;
&gt; 2. Try copying the contents of your jsp off to the side and replacing with something
simple like "hello world". This should get rid of the error.  Then line or group of lines
at a time, copy your content back to the page and refresh.  When the error reappears, you
will have found the line causing the problem.
&gt;
&gt; Here is tiles-defs.xml
&gt;
&gt; &lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt; &lt;!DOCTYPE tiles-definitions PUBLIC
&gt;       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
&gt;       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;
&gt;
&gt; &lt;tiles-definitions&gt;
&gt;    &lt;definition name="layout.defects" template="/layouts/template.jsp"&gt;
&gt;            &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
&gt;            &lt;put-attribute name="header" value="/header.jsp" /&gt;
&gt;            &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
&gt;            &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
&gt;            &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;
&gt;    &lt;definition name="DisplayDefects" extends="layout.defects"&gt;
&gt;            &lt;put-attribute name="body" value="/showdefects2.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;    &lt;definition name="UpdateDefect" extends="layout.defects"&gt;
&gt;            &lt;put-attribute name="body" value="/updatedefect.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;    &lt;definition name="AddDefect"  extends="layout.defects"&gt;
&gt;            &lt;put-attribute name="body" value="/adddefect.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;    &lt;definition name="Logon"  extends="layout.defects"&gt;
&gt;            &lt;put-attribute name="body" value="/logon.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;        &lt;definition name="Search"  extends="layout.defects"&gt;
&gt;            &lt;put-attribute name="body" value="/search.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt; &lt;/tiles-definitions&gt;
&gt;
&gt; Regards,
&gt; Brian Stewart
&gt;
&gt; -----Original Message-----
&gt; From: Andy T [mailto:verygoofyone@gmail.com]
&gt; Sent: Tuesday, November 10, 2009 9:52 AM
&gt; To: users@tiles.apache.org
&gt; Subject: Re: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.
&gt;
&gt; Hi Brian/Antonio,
&gt;
&gt; Thanks to both of you for responding . . .
&gt;
&gt; Brian, I think now would be a good time to "revisit" my logging . . .
&gt; to make sure that it is being written properly.  I strongly suspect
&gt; that once the logging is working correctly I'll be able to overcome
&gt; issues myself . . . . .  and won't have to bother you and Antonio . .
&gt; . but to answer your questions:
&gt;
&gt;
&gt;
&gt;
&gt; Here is template.jsp:
&gt;
&gt;
&gt;
&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
&gt; &lt;%@page language="java" contentType="text/html; charset=ISO-8859-1"
&gt; pageEncoding="ISO-8859-1"%&gt;
&gt; &lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %&gt;
&gt;
&gt; &lt;html&gt;
&gt; &lt;head&gt;
&gt;        &lt;title&gt;test&lt;/title&gt;
&gt;        &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&gt;        &lt;title&gt;&lt;tiles:getAsString name="title"/&gt;&lt;/title&gt;
&gt;        &lt;title&gt;THREE-COLUMN FIXED LAYOUT WITH FIXED BOXES&lt;/title&gt;
&gt;        &lt;link rel="stylesheet" href="../styles/style.css" type="text/css"&gt;
&gt;        &lt;link rel="stylesheet" href="../styles/banner.css" type="text/css"&gt;
&gt; &lt;/head&gt;
&gt; &lt;body&gt;
&gt; &lt;div id="MainContainer"&gt;
&gt; &lt;table border="1" cellpadding="2" cellspacing="2" align="center"&gt;
&gt; &lt;tr&gt;
&gt; &lt;td height="20%" colspan="2" width="83%"&gt;
&gt;        &lt;tiles:insertAttribute name="header" /&gt;
&gt; &lt;/td&gt;
&gt; &lt;/tr&gt;
&gt; &lt;tr&gt;
&gt; &lt;td height="20%" colspan="2"&gt;
&gt;        &lt;tiles:insertAttribute name="menu" /&gt;
&gt; &lt;/td&gt;
&gt; &lt;/tr&gt;
&gt; &lt;tr&gt;
&gt; &lt;td width="20%" height="250"&gt;
&gt;        &lt;div id="Main"&gt;
&gt;                &lt;div id="LeftNav"&gt;
&gt;                        &lt;tiles:insertAttribute name="leftnav" /&gt;
&gt;                &lt;/div&gt;
&gt;         &lt;/div&gt;
&gt; &lt;/td&gt;
&gt; &lt;td align="center"&gt;
&gt;        &lt;tiles:insertAttribute name="body" /&gt;
&gt; &lt;/td&gt;
&gt; &lt;/tr&gt;
&gt; &lt;tr&gt;
&gt; &lt;td height="20%" colspan="2"&gt;
&gt;        &lt;div id="FooterContainer"&gt;
&gt;                &lt;div id="Footer"&gt;
&gt;                        &lt;tiles:insertAttribute name="footer" /&gt;
&gt;                &lt;/div&gt;
&gt;        &lt;/div&gt;
&gt; &lt;/td&gt;
&gt; &lt;/tr&gt;
&gt; &lt;/table&gt;
&gt; &lt;/div&gt;
&gt; &lt;/body&gt;
&gt; &lt;/html&gt;
&gt;
&gt;
&gt;
&gt;
&gt; Here is tiles-defs.xml
&gt;
&gt; &lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
&gt; &lt;!DOCTYPE tiles-definitions PUBLIC
&gt;       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
&gt;       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;
&gt;
&gt; &lt;tiles-definitions&gt;
&gt;
&gt;    &lt;definition name="DisplayDefects" template="/layouts/template.jsp"&gt;
&gt;            &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
&gt;            &lt;put-attribute name="header" value="/header.jsp" /&gt;
&gt;            &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
&gt;            &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
&gt;            &lt;put-attribute name="body" value="/showdefects2.jsp" /&gt;
&gt;            &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;    &lt;definition name="UpdateDefect" template="/layouts/template.jsp"&gt;
&gt;            &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
&gt;            &lt;put-attribute name="header" value="/header.jsp" /&gt;
&gt;            &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
&gt;            &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
&gt;            &lt;put-attribute name="body" value="/updatedefect.jsp" /&gt;
&gt;            &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;    &lt;definition name="AddDefect" template="/layouts/template.jsp"&gt;
&gt;            &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
&gt;            &lt;put-attribute name="header" value="/header.jsp" /&gt;
&gt;            &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
&gt;            &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
&gt;            &lt;put-attribute name="body" value="/adddefect.jsp" /&gt;
&gt;            &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;    &lt;definition name="Logon" template="/layouts/template.jsp"&gt;
&gt;            &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
&gt;            &lt;put-attribute name="header" value="/header.jsp" /&gt;
&gt;            &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
&gt;            &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
&gt;            &lt;put-attribute name="body" value="/logon.jsp" /&gt;
&gt;            &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt;        &lt;definition name="Search" template="/layouts/template.jsp"&gt;
&gt;            &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
&gt;            &lt;put-attribute name="header" value="/header.jsp" /&gt;
&gt;            &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
&gt;            &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
&gt;            &lt;put-attribute name="body" value="/search.jsp" /&gt;
&gt;            &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
&gt;        &lt;/definition&gt;
&gt;
&gt; &lt;/tiles-definitions&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; On Tue, Nov 10, 2009 at 9:40 AM, Brian Stewart &lt;Brian.Stewart@ahom.com&gt; wrote:
&gt;&gt; Sounds like you have an error in your template.jsp.  Can you post the contents and
the tiles include?
&gt;&gt;
&gt;&gt; Regards,
&gt;&gt; Brian Stewart
&gt;&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: Andy T [mailto:verygoofyone@gmail.com]
&gt;&gt; Sent: Tuesday, November 10, 2009 8:34 AM
&gt;&gt; To: users@tiles.apache.org
&gt;&gt; Subject: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.
&gt;&gt;
&gt;&gt; Hi All,
&gt;&gt;
&gt;&gt; I am new to tiles and I have a small struts application that uses
&gt;&gt; tiles.  On one of the .jsp pages in the application I have search
&gt;&gt; functionality by certain criteria.  I want to search by criteria and
&gt;&gt; then reload the SAME .jsp page which shows the results of the search.
&gt;&gt; However, when I attempt to do this I get the exception shown in the
&gt;&gt; subject above.  How do I reload the same .jsp after executing code on
&gt;&gt; the server in my action with Tiles?
&gt;&gt;
&gt;&gt; In my struts-config I have this:
&gt;&gt;
&gt;&gt; &lt;action path="/search" type="Search"
&gt;&gt; name="DefectForm"
&gt;&gt; input="/error.jsp"
&gt;&gt; scope="session"
&gt;&gt; cancellable="true"
&gt;&gt; validate="true"&gt;
&gt;&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt;&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt;&gt; &lt;/action&gt;
&gt;&gt;
&gt;&gt; &lt;action path="/searchresults" type="SearchResults"
&gt;&gt; name="DefectForm"
&gt;&gt; input="/error.jsp"
&gt;&gt; scope="session"
&gt;&gt; cancellable="true"
&gt;&gt; validate="true"&gt;
&gt;&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt;&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt;&gt; &lt;/action&gt;
&gt;&gt;
&gt;&gt; Here's the exception report:
&gt;&gt;
&gt;&gt; javax.servlet.ServletException: JSPException including path
&gt;&gt; '/layouts/template.jsp'.
&gt;&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
&gt;&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;&gt;
&gt;&gt;
&gt;&gt; root cause
&gt;&gt;
&gt;&gt; org.apache.jasper.JasperException: JSPException including path
&gt;&gt; '/layouts/template.jsp'.
&gt;&gt;        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
&gt;&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
&gt;&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;&gt;
&gt;&gt;
&gt;&gt; root cause
&gt;&gt;
&gt;&gt; org.apache.tiles.impl.CannotRenderException: JSPException including
&gt;&gt; path '/layouts/template.jsp'.
&gt;&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
&gt;&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
&gt;&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
&gt;&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
&gt;&gt;        org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
&gt;&gt;        org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
&gt;&gt;        org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
&gt;&gt;        org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
&gt;&gt;        org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
&gt;&gt;        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
&gt;&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; Andy
&gt;&gt; This message is confidential, intended only for the named recipient
&gt;&gt; and may contain information that is privileged or exempt from
&gt;&gt; disclosure under applicable law.  If you are not the intended
&gt;&gt; recipient, you are notified that the dissemination, distribution or
&gt;&gt; copying of this message is strictly prohibited.  If you receive
&gt;&gt; this message in error, or are not the named recipient, please
&gt;&gt; notify the sender at the email address listed above.
&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: javax.servlet.ServletException: JSPException including path	'/layouts/template.jsp'.</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911100820w3946ef01q395f84c1ac926ab1@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911100820w3946ef01q395f84c1ac926ab1@mail-gmail-com%3e</id>
<updated>2009-11-10T16:20:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/10 Andy T &lt;verygoofyone@gmail.com&gt;:
&gt; Brian, I think now would be a good time to "revisit" my logging . . .
&gt; to make sure that it is being written properly.  I strongly suspect
&gt; that once the logging is working correctly I'll be able to overcome
&gt; issues myself . . . . .  and won't have to bother you and Antonio . .

It's not a question of bother, without a log it is almost impossible
to see the source of the problem.
We like to help, but we need the tools to do that.

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: javax.servlet.ServletException: JSPException including path 	'/layouts/template.jsp'.</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E261998788731391966C@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E261998788731391966C@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-10T16:05:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Andy,

I can help you with the logging, you're right that it will greatly assist you in debugging
your app.

In the mean time I can point out two things that might help.

1. I'll paste an adaption of your tiles-defs that uses "extends" to make it a little simpler

2. Try copying the contents of your jsp off to the side and replacing with something simple
like "hello world". This should get rid of the error.  Then line or group of lines at a time,
copy your content back to the page and refresh.  When the error reappears, you will have found
the line causing the problem.

Here is tiles-defs.xml

&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt; &lt;!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;

&lt;tiles-definitions&gt;
    &lt;definition name="layout.defects" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;


    &lt;definition name="DisplayDefects" extends="layout.defects"&gt;
	    &lt;put-attribute name="body" value="/showdefects2.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="UpdateDefect" extends="layout.defects"&gt;
	    &lt;put-attribute name="body" value="/updatedefect.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="AddDefect"  extends="layout.defects"&gt;
	    &lt;put-attribute name="body" value="/adddefect.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="Logon"  extends="layout.defects"&gt;
	    &lt;put-attribute name="body" value="/logon.jsp" /&gt;
  	&lt;/definition&gt;
  	
  	&lt;definition name="Search"  extends="layout.defects"&gt;
	    &lt;put-attribute name="body" value="/search.jsp" /&gt;
  	&lt;/definition&gt;
&lt;/tiles-definitions&gt;

Regards,
Brian Stewart

-----Original Message-----
From: Andy T [mailto:verygoofyone@gmail.com] 
Sent: Tuesday, November 10, 2009 9:52 AM
To: users@tiles.apache.org
Subject: Re: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.

Hi Brian/Antonio,

Thanks to both of you for responding . . .

Brian, I think now would be a good time to "revisit" my logging . . .
to make sure that it is being written properly.  I strongly suspect
that once the logging is working correctly I'll be able to overcome
issues myself . . . . .  and won't have to bother you and Antonio . .
. but to answer your questions:




Here is template.jsp:



&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
&lt;%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%&gt;
&lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %&gt;

&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;test&lt;/title&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
	&lt;title&gt;&lt;tiles:getAsString name="title"/&gt;&lt;/title&gt;
	&lt;title&gt;THREE-COLUMN FIXED LAYOUT WITH FIXED BOXES&lt;/title&gt;
	&lt;link rel="stylesheet" href="../styles/style.css" type="text/css"&gt;
	&lt;link rel="stylesheet" href="../styles/banner.css" type="text/css"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="MainContainer"&gt;
&lt;table border="1" cellpadding="2" cellspacing="2" align="center"&gt;
&lt;tr&gt;
&lt;td height="20%" colspan="2" width="83%"&gt;
	&lt;tiles:insertAttribute name="header" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="20%" colspan="2"&gt;
	&lt;tiles:insertAttribute name="menu" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="20%" height="250"&gt;
	&lt;div id="Main"&gt;
		&lt;div id="LeftNav"&gt;
			&lt;tiles:insertAttribute name="leftnav" /&gt;
		&lt;/div&gt;	
	 &lt;/div&gt;
&lt;/td&gt;
&lt;td align="center"&gt;
	&lt;tiles:insertAttribute name="body" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="20%" colspan="2"&gt;
	&lt;div id="FooterContainer"&gt;
		&lt;div id="Footer"&gt;
			&lt;tiles:insertAttribute name="footer" /&gt;
		&lt;/div&gt;
	&lt;/div&gt;	
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;	
&lt;/body&gt;
&lt;/html&gt;




Here is tiles-defs.xml

&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
&lt;!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;

&lt;tiles-definitions&gt;

    &lt;definition name="DisplayDefects" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/showdefects2.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="UpdateDefect" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/updatedefect.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="AddDefect" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/adddefect.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="Logon" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/logon.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;
  	
  	&lt;definition name="Search" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/search.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

&lt;/tiles-definitions&gt;














On Tue, Nov 10, 2009 at 9:40 AM, Brian Stewart &lt;Brian.Stewart@ahom.com&gt; wrote:
&gt; Sounds like you have an error in your template.jsp.  Can you post the contents and the
tiles include?
&gt;
&gt; Regards,
&gt; Brian Stewart
&gt;
&gt; -----Original Message-----
&gt; From: Andy T [mailto:verygoofyone@gmail.com]
&gt; Sent: Tuesday, November 10, 2009 8:34 AM
&gt; To: users@tiles.apache.org
&gt; Subject: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.
&gt;
&gt; Hi All,
&gt;
&gt; I am new to tiles and I have a small struts application that uses
&gt; tiles.  On one of the .jsp pages in the application I have search
&gt; functionality by certain criteria.  I want to search by criteria and
&gt; then reload the SAME .jsp page which shows the results of the search.
&gt; However, when I attempt to do this I get the exception shown in the
&gt; subject above.  How do I reload the same .jsp after executing code on
&gt; the server in my action with Tiles?
&gt;
&gt; In my struts-config I have this:
&gt;
&gt; &lt;action path="/search" type="Search"
&gt; name="DefectForm"
&gt; input="/error.jsp"
&gt; scope="session"
&gt; cancellable="true"
&gt; validate="true"&gt;
&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt; &lt;/action&gt;
&gt;
&gt; &lt;action path="/searchresults" type="SearchResults"
&gt; name="DefectForm"
&gt; input="/error.jsp"
&gt; scope="session"
&gt; cancellable="true"
&gt; validate="true"&gt;
&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt; &lt;/action&gt;
&gt;
&gt; Here's the exception report:
&gt;
&gt; javax.servlet.ServletException: JSPException including path
&gt; '/layouts/template.jsp'.
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt;
&gt; root cause
&gt;
&gt; org.apache.jasper.JasperException: JSPException including path
&gt; '/layouts/template.jsp'.
&gt;        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt;
&gt; root cause
&gt;
&gt; org.apache.tiles.impl.CannotRenderException: JSPException including
&gt; path '/layouts/template.jsp'.
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
&gt;        org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
&gt;        org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
&gt;        org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
&gt;        org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
&gt;        org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
&gt;        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt; Thanks,
&gt;
&gt; Andy
&gt; This message is confidential, intended only for the named recipient
&gt; and may contain information that is privileged or exempt from
&gt; disclosure under applicable law.  If you are not the intended
&gt; recipient, you are notified that the dissemination, distribution or
&gt; copying of this message is strictly prohibited.  If you receive
&gt; this message in error, or are not the named recipient, please
&gt; notify the sender at the email address listed above.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: javax.servlet.ServletException: JSPException including path	'/layouts/template.jsp'.</title>
<author><name>Andy T &lt;verygoofyone@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cf405b3330911100751h3f205301kf11e56e99e4b118c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf405b3330911100751h3f205301kf11e56e99e4b118c@mail-gmail-com%3e</id>
<updated>2009-11-10T15:51:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Brian/Antonio,

Thanks to both of you for responding . . .

Brian, I think now would be a good time to "revisit" my logging . . .
to make sure that it is being written properly.  I strongly suspect
that once the logging is working correctly I'll be able to overcome
issues myself . . . . .  and won't have to bother you and Antonio . .
. but to answer your questions:




Here is template.jsp:



&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
&lt;%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%&gt;
&lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %&gt;

&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;test&lt;/title&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
	&lt;title&gt;&lt;tiles:getAsString name="title"/&gt;&lt;/title&gt;
	&lt;title&gt;THREE-COLUMN FIXED LAYOUT WITH FIXED BOXES&lt;/title&gt;
	&lt;link rel="stylesheet" href="../styles/style.css" type="text/css"&gt;
	&lt;link rel="stylesheet" href="../styles/banner.css" type="text/css"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="MainContainer"&gt;
&lt;table border="1" cellpadding="2" cellspacing="2" align="center"&gt;
&lt;tr&gt;
&lt;td height="20%" colspan="2" width="83%"&gt;
	&lt;tiles:insertAttribute name="header" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="20%" colspan="2"&gt;
	&lt;tiles:insertAttribute name="menu" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="20%" height="250"&gt;
	&lt;div id="Main"&gt;
		&lt;div id="LeftNav"&gt;
			&lt;tiles:insertAttribute name="leftnav" /&gt;
		&lt;/div&gt;	
	 &lt;/div&gt;
&lt;/td&gt;
&lt;td align="center"&gt;
	&lt;tiles:insertAttribute name="body" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="20%" colspan="2"&gt;
	&lt;div id="FooterContainer"&gt;
		&lt;div id="Footer"&gt;
			&lt;tiles:insertAttribute name="footer" /&gt;
		&lt;/div&gt;
	&lt;/div&gt;	
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;	
&lt;/body&gt;
&lt;/html&gt;




Here is tiles-defs.xml

&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
&lt;!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;

&lt;tiles-definitions&gt;

    &lt;definition name="DisplayDefects" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/showdefects2.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="UpdateDefect" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/updatedefect.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="AddDefect" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/adddefect.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

    &lt;definition name="Logon" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/logon.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;
  	
  	&lt;definition name="Search" template="/layouts/template.jsp"&gt;
	    &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
	    &lt;put-attribute name="header" value="/header.jsp" /&gt;
	    &lt;put-attribute name="menu" value="/menu.jsp" /&gt;
	    &lt;put-attribute name="leftnav" value="/leftnav.jsp" /&gt;
	    &lt;put-attribute name="body" value="/search.jsp" /&gt;
	    &lt;put-attribute name="footer" value="/footer.jsp" /&gt;
  	&lt;/definition&gt;

&lt;/tiles-definitions&gt;














On Tue, Nov 10, 2009 at 9:40 AM, Brian Stewart &lt;Brian.Stewart@ahom.com&gt; wrote:
&gt; Sounds like you have an error in your template.jsp.  Can you post the contents and the
tiles include?
&gt;
&gt; Regards,
&gt; Brian Stewart
&gt;
&gt; -----Original Message-----
&gt; From: Andy T [mailto:verygoofyone@gmail.com]
&gt; Sent: Tuesday, November 10, 2009 8:34 AM
&gt; To: users@tiles.apache.org
&gt; Subject: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.
&gt;
&gt; Hi All,
&gt;
&gt; I am new to tiles and I have a small struts application that uses
&gt; tiles.  On one of the .jsp pages in the application I have search
&gt; functionality by certain criteria.  I want to search by criteria and
&gt; then reload the SAME .jsp page which shows the results of the search.
&gt; However, when I attempt to do this I get the exception shown in the
&gt; subject above.  How do I reload the same .jsp after executing code on
&gt; the server in my action with Tiles?
&gt;
&gt; In my struts-config I have this:
&gt;
&gt; &lt;action path="/search" type="Search"
&gt; name="DefectForm"
&gt; input="/error.jsp"
&gt; scope="session"
&gt; cancellable="true"
&gt; validate="true"&gt;
&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt; &lt;/action&gt;
&gt;
&gt; &lt;action path="/searchresults" type="SearchResults"
&gt; name="DefectForm"
&gt; input="/error.jsp"
&gt; scope="session"
&gt; cancellable="true"
&gt; validate="true"&gt;
&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt; &lt;/action&gt;
&gt;
&gt; Here's the exception report:
&gt;
&gt; javax.servlet.ServletException: JSPException including path
&gt; '/layouts/template.jsp'.
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt;
&gt; root cause
&gt;
&gt; org.apache.jasper.JasperException: JSPException including path
&gt; '/layouts/template.jsp'.
&gt;        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt;
&gt; root cause
&gt;
&gt; org.apache.tiles.impl.CannotRenderException: JSPException including
&gt; path '/layouts/template.jsp'.
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
&gt;        org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
&gt;        org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
&gt;        org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
&gt;        org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
&gt;        org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
&gt;        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt; Thanks,
&gt;
&gt; Andy
&gt; This message is confidential, intended only for the named recipient
&gt; and may contain information that is privileged or exempt from
&gt; disclosure under applicable law.  If you are not the intended
&gt; recipient, you are notified that the dissemination, distribution or
&gt; copying of this message is strictly prohibited.  If you receive
&gt; this message in error, or are not the named recipient, please
&gt; notify the sender at the email address listed above.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: javax.servlet.ServletException: JSPException including path	'/layouts/template.jsp'.</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3caae96ca0911100642m1bdd0404pd55be79d41be54d5@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911100642m1bdd0404pd55be79d41be54d5@mail-gmail-com%3e</id>
<updated>2009-11-10T14:42:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
What version of Struts and Tiles are you using?
Can you post your log? I think that there should be the "real" cause in the log.

Antonio

2009/11/10 Andy T &lt;verygoofyone@gmail.com&gt;:
&gt; Hi All,
&gt;
&gt; I am new to tiles and I have a small struts application that uses
&gt; tiles.  On one of the .jsp pages in the application I have search
&gt; functionality by certain criteria.  I want to search by criteria and
&gt; then reload the SAME .jsp page which shows the results of the search.
&gt; However, when I attempt to do this I get the exception shown in the
&gt; subject above.  How do I reload the same .jsp after executing code on
&gt; the server in my action with Tiles?
&gt;
&gt; In my struts-config I have this:
&gt;
&gt; &lt;action path="/search" type="Search"
&gt; name="DefectForm"
&gt; input="/error.jsp"
&gt; scope="session"
&gt; cancellable="true"
&gt; validate="true"&gt;
&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt; &lt;/action&gt;
&gt;
&gt; &lt;action path="/searchresults" type="SearchResults"
&gt; name="DefectForm"
&gt; input="/error.jsp"
&gt; scope="session"
&gt; cancellable="true"
&gt; validate="true"&gt;
&gt; &lt;forward name="success" path="/test5.jsp"/&gt;
&gt; &lt;forward name="failure" path="/submitpage.jsp"/&gt;
&gt; &lt;/action&gt;
&gt;
&gt; Here's the exception report:
&gt;
&gt; javax.servlet.ServletException: JSPException including path
&gt; '/layouts/template.jsp'.
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt;
&gt; root cause
&gt;
&gt; org.apache.jasper.JasperException: JSPException including path
&gt; '/layouts/template.jsp'.
&gt;        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt;
&gt; root cause
&gt;
&gt; org.apache.tiles.impl.CannotRenderException: JSPException including
&gt; path '/layouts/template.jsp'.
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
&gt;        org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
&gt;        org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
&gt;        org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
&gt;        org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
&gt;        org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
&gt;        org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
&gt;        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
&gt;        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
&gt;        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
&gt;        org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
&gt;        org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
&gt;        org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
&gt;        org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
&gt;        org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
&gt;        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
&gt;        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
&gt;        javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
&gt;
&gt; Thanks,
&gt;
&gt; Andy
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: javax.servlet.ServletException: JSPException including path 	'/layouts/template.jsp'.</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878873138E76EA@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878873138E76EA@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-11-10T14:40:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sounds like you have an error in your template.jsp.  Can you post the contents and the tiles
include?

Regards,
Brian Stewart

-----Original Message-----
From: Andy T [mailto:verygoofyone@gmail.com] 
Sent: Tuesday, November 10, 2009 8:34 AM
To: users@tiles.apache.org
Subject: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.

Hi All,

I am new to tiles and I have a small struts application that uses
tiles.  On one of the .jsp pages in the application I have search
functionality by certain criteria.  I want to search by criteria and
then reload the SAME .jsp page which shows the results of the search.
However, when I attempt to do this I get the exception shown in the
subject above.  How do I reload the same .jsp after executing code on
the server in my action with Tiles?

In my struts-config I have this:

&lt;action path="/search" type="Search"
name="DefectForm"
input="/error.jsp"
scope="session"
cancellable="true"
validate="true"&gt;
&lt;forward name="success" path="/test5.jsp"/&gt;
&lt;forward name="failure" path="/submitpage.jsp"/&gt;
&lt;/action&gt;

&lt;action path="/searchresults" type="SearchResults"
name="DefectForm"
input="/error.jsp"
scope="session"
cancellable="true"
validate="true"&gt;
&lt;forward name="success" path="/test5.jsp"/&gt;
&lt;forward name="failure" path="/submitpage.jsp"/&gt;
&lt;/action&gt;

Here's the exception report:

javax.servlet.ServletException: JSPException including path
'/layouts/template.jsp'.
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

org.apache.jasper.JasperException: JSPException including path
'/layouts/template.jsp'.
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
	org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

org.apache.tiles.impl.CannotRenderException: JSPException including
path '/layouts/template.jsp'.
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
	org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
	org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
	org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
	org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
	org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
	org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

Thanks,

Andy
This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.



</pre>
</div>
</content>
</entry>
<entry>
<title>javax.servlet.ServletException: JSPException including path	'/layouts/template.jsp'.</title>
<author><name>Andy T &lt;verygoofyone@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200911.mbox/%3cf405b3330911100633x20001a15p456e536687fd3305@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf405b3330911100633x20001a15p456e536687fd3305@mail-gmail-com%3e</id>
<updated>2009-11-10T14:33:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All,

I am new to tiles and I have a small struts application that uses
tiles.  On one of the .jsp pages in the application I have search
functionality by certain criteria.  I want to search by criteria and
then reload the SAME .jsp page which shows the results of the search.
However, when I attempt to do this I get the exception shown in the
subject above.  How do I reload the same .jsp after executing code on
the server in my action with Tiles?

In my struts-config I have this:

&lt;action path="/search" type="Search"
name="DefectForm"
input="/error.jsp"
scope="session"
cancellable="true"
validate="true"&gt;
&lt;forward name="success" path="/test5.jsp"/&gt;
&lt;forward name="failure" path="/submitpage.jsp"/&gt;
&lt;/action&gt;

&lt;action path="/searchresults" type="SearchResults"
name="DefectForm"
input="/error.jsp"
scope="session"
cancellable="true"
validate="true"&gt;
&lt;forward name="success" path="/test5.jsp"/&gt;
&lt;forward name="failure" path="/submitpage.jsp"/&gt;
&lt;/action&gt;

Here's the exception report:

javax.servlet.ServletException: JSPException including path
'/layouts/template.jsp'.
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

org.apache.jasper.JasperException: JSPException including path
'/layouts/template.jsp'.
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
	org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

org.apache.tiles.impl.CannotRenderException: JSPException including
path '/layouts/template.jsp'.
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
	org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
	org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
	org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
	org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
	org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
	org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

Thanks,

Andy


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: TilesContainer Not Intialized Problem</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200910.mbox/%3caae96ca0910301113r50a71329r9faa22c82722b0c2@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0910301113r50a71329r9faa22c82722b0c2@mail-gmail-com%3e</id>
<updated>2009-10-30T18:13:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/10/30 Andy T &lt;verygoofyone@gmail.com&gt;:
&gt; I got the logging and tiles working now . . .
&gt;
&gt; Brian helped me with the logging and I was able to see what the problem was
&gt; once the logging was working . . .

Just for curiosity, what was your problem?

Antonio


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: TilesContainer Not Intialized Problem</title>
<author><name>Andy T &lt;verygoofyone@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200910.mbox/%3cf405b3330910301021t15d32c4t11fb172d337508c5@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf405b3330910301021t15d32c4t11fb172d337508c5@mail-gmail-com%3e</id>
<updated>2009-10-30T17:21:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Antonio,

I got the logging and tiles working now . . .

Brian helped me with the logging and I was able to see what the problem was
once the logging was working . . .

Thanks so much for your offer of help . . .

Andy

On Fri, Oct 30, 2009 at 3:55 AM, Antonio Petrelli &lt;
antonio.petrelli@gmail.com&gt; wrote:

&gt; 2009/10/30 Andy T &lt;verygoofyone@gmail.com&gt;:
&gt; &gt; I'm trying to apply Tiles in my Struts application for the first time
&gt; &gt; and I'm getting this error:  "javax.servlet.ServletException:
&gt; &gt; TilesContainer not initialized" when I execute test.jsp.  I'm using
&gt; &gt; Struts 1.3 and Tiles 2.1.3.  Relevant code snippets of various files
&gt; &gt; are shown below.
&gt;
&gt; Please post your log.
&gt;
&gt; Antonio
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: TilesContainer Not Intialized Problem</title>
<author><name>Brian Stewart &lt;Brian.Stewart@ahom.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tiles-users/200910.mbox/%3cB5C5FA16EA3D4C4C9EAD23E26199878872B2524CBE@MXCLUSTER01.amhome.com%3e"/>
<id>urn:uuid:%3cB5C5FA16EA3D4C4C9EAD23E26199878872B2524CBE@MXCLUSTER01-amhome-com%3e</id>
<updated>2009-10-30T13:44:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
My Bad Andy,

You also need the configuration for the stdout appender.  Here is what I use...
# configuration for the console appender 
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p [%d] (%c:%L) - %m%n

Regards,
Brian 
mrbcstewart@yahoo.com

-----Original Message-----
From: Andy T [mailto:verygoofyone@gmail.com] 
Sent: Friday, October 30, 2009 8:29 AM
To: users@tiles.apache.org
Subject: Re: TilesContainer Not Intialized Problem

Hi Brian,

I replaced the line as you suggested and restarted Tomcat but unfortunately
I still get the same error:

log4j:ERROR Could not find value for key log4j.appender.stdout

Thanks,
Andy

On Fri, Oct 30, 2009 at 9:15 AM, Brian Stewart &lt;Brian.Stewart@ahom.com&gt;wrote:

&gt; Just add ", stdout" to the top line in your log4j.properties file.
&gt;
&gt; Should look like...
&gt; log4j.rootLogger=DEBUG, testAppender, stdout
&gt;
&gt; Regards,
&gt; Brian
&gt; mrbcstewart@yahoo.com
&gt;
&gt; -----Original Message-----
&gt; From: Andy T [mailto:verygoofyone@gmail.com]
&gt; Sent: Friday, October 30, 2009 8:12 AM
&gt; To: users@tiles.apache.org
&gt; Subject: Re: TilesContainer Not Intialized Problem
&gt;
&gt; Hi Antonio,
&gt;
&gt; Thank you for responding to my question . . .
&gt;
&gt; I'm new to all this and my logger is not properly configured so I'm working
&gt; on this . . .
&gt;
&gt; Currently, I have a log4j.properties file and logging.properties file in
&gt; WEB-INF/Classes Folder.  However, I'm not sure what the contents of these
&gt; files should be . . . the current contents are shown below:
&gt;
&gt; ****************  log4j.properties ********************
&gt;
&gt; log4j.rootLogger=DEBUG, testAppender
&gt;
&gt; log4j.appender.testAppender=
&gt; com.webmethods.sc.logging.log4j.WmDailyFileAppender
&gt;
&gt; log4j.appender.testAppender.file=log/test1.log
&gt;
&gt; log4j.appender.testAppender.datePattern='.'yyyy-MM-dd_HH_mm
&gt;
&gt; log4j.appender.testAppender.Append=false
&gt;
&gt; log4j.appender.testAppender.layout=com.webmethods.sc.log4j.PatternLayout
&gt;
&gt; log4j.appender.testAppender.layout.ConversionPattern=%m%n
&gt;
&gt; log4j.appender.testAppender.stdout.Target=System.out
&gt;
&gt;
&gt;
&gt; log4j.rootLogger=warn, stdout
&gt;
&gt; log4j.logger.org.hibernate=debug
&gt;
&gt; log4j.logger.org.hibernate.type=info
&gt;
&gt; log4j.logger.org.hibernate.tool.hbm2ddl=debug
&gt;
&gt; ******************************  logging.properties
&gt; **************************
&gt;
&gt; handlers = *org*.*apache*.*juli*.FileHandler, java.*util*
&gt; .logging.ConsoleHandler
&gt;
&gt; ############################################################
&gt;
&gt; # Handler specific properties.
&gt;
&gt; # Describes specific configuration info for Handlers.
&gt;
&gt; ############################################################
&gt;
&gt; org.apache.juli.FileHandler.level = FINE
&gt;
&gt; org.apache.juli.FileHandler.directory = ${*catalina*.base}/logs
&gt;
&gt; org.apache.juli.FileHandler.prefix = *servlet*-examples.
&gt;
&gt; java.util.logging.ConsoleHandler.level = FINE
&gt;
&gt; java.util.logging.ConsoleHandler.formatter = java.*util*
&gt; .logging.SimpleFormatter
&gt;
&gt;
&gt;
&gt; I get these messages when I start Tomcat 5.5:
&gt;
&gt; log4j:ERROR Could not find value for key log4j.appender.stdout
&gt;
&gt; log4j:ERROR Could not instantiate appender named "stdout".
&gt;
&gt; log4j:WARN No appenders could be found for logger
&gt; (org.apache.commons.digester.Digester).
&gt;
&gt; log4j:WARN Please initialize the log4j system properly.
&gt;
&gt; Can you assist me in configuring the logger correctly?
&gt;
&gt; Thanks,
&gt;
&gt; Andy
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; On Fri, Oct 30, 2009 at 3:55 AM, Antonio Petrelli &lt;
&gt; antonio.petrelli@gmail.com&gt; wrote:
&gt;
&gt; &gt; 2009/10/30 Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;:
&gt; &gt;  &gt; 2009/10/30 Andy T &lt;verygoofyone@gmail.com&gt;:
&gt; &gt; &gt;&gt; I'm trying to apply Tiles in my Struts application for the first time
&gt; &gt; &gt;&gt; and I'm getting this error:  "javax.servlet.ServletException:
&gt; &gt; &gt;&gt; TilesContainer not initialized" when I execute test.jsp.  I'm using
&gt; &gt; &gt;&gt; Struts 1.3 and Tiles 2.1.3.  Relevant code snippets of various files
&gt; &gt; &gt;&gt; are shown below.
&gt; &gt; &gt;
&gt; &gt; &gt; Please post your log.
&gt; &gt;
&gt; &gt; I meant the *entire* log, from the start of the webapp to the error.
&gt; &gt;
&gt; &gt; Antonio
&gt; &gt;
&gt; This message is confidential, intended only for the named recipient
&gt; and may contain information that is privileged or exempt from
&gt; disclosure under applicable law.  If you are not the intended
&gt; recipient, you are notified that the dissemination, distribution or
&gt; copying of this message is strictly prohibited.  If you receive
&gt; this message in error, or are not the named recipient, please
&gt; notify the sender at the email address listed above.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
</feed>
