I could just use this :
** tiles-defs.xml **
definition name=.base page=/layout/base.jsp
/definition
** base.jsp **
body id=base_body
div id=base_header
[EMAIL PROTECTED] page=incl/header.jsp %
/div
div id=base_info
jsp:include page=incl/info.jsp.jsp/
/div
Thomas Thomas ha scritto:
I could just use this :
** tiles-defs.xml **
definition name=.base page=/layout/base.jsp
/definition
** base.jsp **
body id=base_body
div id=base_header
[EMAIL PROTECTED] page=incl/header.jsp %
/div
div id=base_info
jsp:include
But u suggested me to use the [EMAIL PROTECTED] ... % if I want to add
static jsp
content.
Well then it's in contradiction with what u say !
I understand that tiles:insert attribute... let u fill the attributes but
why do u suggest me then to use [EMAIL PROTECTED] ... % ?
This attribute will
Thank u Chris,
I will try that !
Do u have a solution for number 1) ?
Extra remark all CSS and JS files will be cached by the browser, so
including CSS in all webpages does not decrease the performance.
On 11/29/06, Thomas Thomas [EMAIL PROTECTED] wrote:
Thank u Chris,
I will try that !
Do u have a solution for number 1) ?
They will be cached if the user 'surf' on the webpage,
if I have thousand pages, and he may see two pages,
i am going to store 1000's css files in his cache.
2006/11/29, Mark Bakker [EMAIL PROTECTED]:
Extra remark all CSS and JS files will be cached by the browser, so
including CSS in all
Ohh like that... guess I miss read something :,) if this is the
case I would not use the header tile how you defined it... is it then
not more sensible to create several header tiles, I like JSP that are
still more or less readable as HTML without the magic things in
config files.
ofcourse
Mark,
I don't understand your solution,
It's the first time I try to implement Tiles,
Could u tell me what *you* would do ?
U mean making more than one base layout ?
And in my jsp pages insert different base layouts ?
2006/11/29, Mark Bakker [EMAIL PROTECTED]:
Ohh like that... guess I miss
I think if you have so many kb CSS files in your system, the best
solution is not make one tile over the complete header. In stead you
could create header tiles for subsets what re-use the same CSS files.
You could name them something like this
header-home.jsp (including home.css text-block.css
How about not having so many bloody CSS files?
-Original Message-
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 4:43 AM
To: Struts Users Mailing List
Subject: Re: Struts Tiles, Lose of Performance ? :-(
They will be cached if the user 'surf
my idea:D
On 11/29/06, Dave Newton [EMAIL PROTECTED] wrote:
How about not having so many bloody CSS files?
-Original Message-
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 4:43 AM
To: Struts Users Mailing List
Subject: Re: Struts Tiles, Lose
?
-Original Message-
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 4:43 AM
To: Struts Users Mailing List
Subject: Re: Struts Tiles, Lose of Performance ? :-(
They will be cached if the user 'surf' on the webpage,
if I have thousand pages, and he may
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
How about not having so many bloody CSS files?
How ?
Delete some?
Seriously; why are your styles so spread out? Don't you have a
consistent style (perhaps with minor differences) for the site? Why does
each page/section need its own?
Dave
Because if I have a lot of pages, and a page has a error in its layout,
I can easily find the code because I have separate css files for each file.
If I have a common CSS for all the pages, I think the code will be long ...
I must say i'm not sure about what I'm doing, what do u think of my
well header is your naming
On 11/28/06, Thomas Thomas [EMAIL PROTECTED] wrote:
div id=base_header
tiles:insert attribute=header/
/div
more info about CSS you can find here:
http://www.w3schools.com/css/default.asp
On 11/29/06, Dave Newton [EMAIL PROTECTED] wrote:
From:
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
what do u think of my arguments ?
I think you have too many CSS files :)
I've seen sites with maybe 2-3, but if your site pages are supposed to
look the same you might want to consolidate all your style information
to avoid duplicating information.
well the idea of CSS is to separate styling from the actual web page...
how you implemented it you are mis-using CSS... look to all mayor
websites.. they all using one CSS file. may bee you can find the code
easily, but you need to fix the same bug on several places.
With your strategy you
Yes, I think you are right,
I'm doing this all wrong :-(
I can't include jsp's in a static way with Tiles ?
Before Tiles I used dynamic includes and static includes,
I will lose some eprformance here because with Tiles it is only dynamic.
2006/11/29, Dave Newton [EMAIL PROTECTED]:
From:
Thomas Thomas ha scritto:
Yes, I think you are right,
I'm doing this all wrong :-(
I can't include jsp's in a static way with Tiles ?
Use jsp:include or [EMAIL PROTECTED] instead. Using Tiles does not mean that
you cannot use standard tags.
Ciao
Antonio
Ah
Well I could have a layout thanks to Tiles which would be inherited by the
pages,
and just use jsp:include or [EMAIL PROTECTED] then ...
What's the advantage of having tiles:insert attribute=header/ ? Finally
it's just the fact that the name of the page is not hardcoded in the
Thomas Thomas ha scritto:
Ah
Well I could have a layout thanks to Tiles which would be inherited by
the
pages,
and just use jsp:include or [EMAIL PROTECTED] then ...
What's the advantage of having tiles:insert attribute=header/ ?
Finally
it's just the fact that the name of the page is
I'm trying to understand Tiles ...
Instead of this :
** tiles-defs.xml **
definition name=.base page=/layout/base.jsp
put name=header value=/incl/header/header.jsp/
put name=info value=/incl/info/info.jsp/
put name=menu_top
Well, if you look at my previous response, you can see why they can't do
that. You're passing dynamic information into the tiles to control how they
are generated, a static include wouldn't work.
(*Chris*)
On 11/29/06, Thomas Thomas [EMAIL PROTECTED] wrote:
Thank u Chris,
I will try that !
Thomas Thomas ha scritto:
What's the advantage of using tiles:insert attribute=header/
instead of
the jsp includes.
The reuse of the layout! You can have a simple layout page (e.g. the
classic layout with header, body, menu (on the left) and footer) with no
connection with its content.
And
I just implemented Struts Tiles in my web application.
I love the concept of seperating everything that has to do with layout and
the rest.
But it seems that I will lose some performance now :
1)
The tag tiles:insert doesn't allow to include in a static way a jsp page.
tiles:insert
Or you can use a putList tag in your Tile Definition that lists just the css
(or js) files that you need for that page and insert them into the layout
dynamically.
(*Chris*)
On 11/28/06, Thomas Thomas [EMAIL PROTECTED] wrote:
I just implemented Struts Tiles in my web application.
I love the
26 matches
Mail list logo