Re: Struts Tiles, Lose of Performance ? :-(

2006-11-30 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-30 Thread Antonio Petrelli
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-30 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
Thank u Chris, I will try that ! Do u have a solution for number 1) ?

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Mark Bakker
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) ?

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Mark Bakker
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Mark Bakker
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

RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Dave Newton
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Mark Bakker
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
? -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

[OT] RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Dave Newton
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

Re: [OT] RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
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

Re: [OT] RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Mark Bakker
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:

RE: [OT] RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Dave Newton
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.

Re: [OT] RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Mark Bakker
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

Re: [OT] RE: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
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:

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Antonio Petrelli
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Antonio Petrelli
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Chris Pratt
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 !

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-29 Thread Antonio Petrelli
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

Struts Tiles, Lose of Performance ? :-(

2006-11-28 Thread Thomas Thomas
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

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-28 Thread Chris Pratt
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