Since the path is different for each of the layouts, that could be the reason
why the resources are not included. You can verify by looking at the source
code that the BaseLayout.jsp is not being used. You could try this:
Hope this works out!
From: Sub
Antonio Petrelli ha scritto:
Whoops, I actually meant:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Matt Kurjanowicz ha scritto:
That is what I get - sorry I confused myself with my example.
No problem, I thought really it was a Tiles bug :-)
Ok if I understood you correctly, you wish to override an attribute that
has been put inside another definition, right?
In this case, you cannot do thi
On 8/2/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
: Library Home
--
LIB DEFAULT
--
Ciao
Antonio
That is what I get - sorry I confused myself with
Matt Kurjanowicz ha scritto:
Hi,
I've seen a few threads similar to this, but nothing with my specific
problem.
Suppose I have a tiles definition file, with the following definitions:
...
Now suppose that I have the following JSP pages:
stdLayout.jsp:
" />
I ca
l Keese [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 12:43 AM
To: Struts Users Mailing List
Subject: Re: nested tiles
FYI, I went ahead and added a wiki page for this. Apparently this is
the first wiki page on general tile use (?)
http://wiki.apache.org/struts/StrutsDocTiles
FYI, I went ahead and added a wiki page for this. Apparently this is
the first wiki page on general tile use (?)
http://wiki.apache.org/struts/StrutsDocTiles
(if you see any mistakes please correct them. or if anyone has any
other tips on tiles please add them.)
Bill
Yes it works.
Here is my working configuration.
Thank you very much.
tiles-def.xml:
---
layout.jsp
--
Bill Keese
Yeah, I also wish there was more documentation on this.
I think I found the flaw in your original design. In layout.jsp you
want to take the "body" attribute defined in tiles-def.xml and pass it
on to bodyFrame.jsp as "bodypage". So you need to use beanName, right?
tiles-def.xml:
-
thanks Bill,
your way to make nested tiles works fine. (After i changed "extends" to
"template" in the second definition).
It has the advantage that the jsp“s are smaller and easier to
understand, but at the cost you
need 2 definitions for each page. If you are only use one BodyFrame, you
need
Interesting. I'm not sure why your code doesn't work. Maybe the value
attribute in should be
/WEB-INF/pgs/startpage.jsp.
Anyway, I haven't done nested tiles in the same way as you do. This is
how I do nested tiles. Maybe someone can comment on which way is better.
11 matches
Mail list logo