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  let u fill the attributes but
why do u suggest me then to use <[EMAIL PROTECTED] ... %> ?
This attribute will then render always the same in the layout like u say !


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

2006-11-30 Thread Antonio Petrelli

Thomas Thomas ha scritto:

I could just use this :

** tiles-defs.xml **
 
 

** base.jsp **

   
   <[EMAIL PROTECTED] page="incl/header.jsp" %>
   
   
   
   
   [...]


And use the base.jsp-layout in different pages.
And u see I'm not using 


I can't see your point, you're using base.jsp as a normal JSP page, not 
a layout page. Your base.jsp will always render the same.
If you use  you can fill those attributes 
with different JSP subpages, reusing base.jsp as a layout page.
By the way, are you sure you WANT to use Tiles? Maybe you should try 
SiteMesh instead, that probably is what you need.


Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2006-11-30 Thread Thomas Thomas

I could just use this :

** tiles-defs.xml **
 
 

** base.jsp **

   
   <[EMAIL PROTECTED] page="incl/header.jsp" %>
   
   
   
   
   [...]


And use the base.jsp-layout in different pages.
And u see I'm not using 

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

2006-11-29 Thread Antonio Petrelli

Thomas Thomas ha scritto:
What's the advantage of using  
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 you can define a base definition (for example without putting the 
"body" attribute) and then "extend" it to create the real definitions.
And with Tiles you can create complex pages, by putting a definition as 
an attribute: so your body can be made of several reusable parts.


HTH
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 !
Do u have a solution for number 1) ?




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

2006-11-29 Thread Thomas Thomas

I'm trying to understand Tiles ...

Instead of this :
** tiles-defs.xml **
 
   
   
   
   
   
   
 

** base.jsp **

   
   
   
   
   
   
   [...]

I could have this :

** tiles-defs.xml **
 
 

** base.jsp **

   
   <[EMAIL PROTECTED] page="incl/header.jsp" %>
   
   
   
   
   [...]

What's the advantage of using  instead of
the jsp includes.


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  or <[EMAIL PROTECTED]> then ...
What's the advantage of having  ? 
Finally

it's just the fact that the name of the page is not hardcoded in the
application, but in the XML file instead.


So what do you need? A statically-included JSP page or something else?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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  or <[EMAIL PROTECTED]> then ...
What's the advantage of having  ? Finally
it's just the fact that the name of the page is not hardcoded in the
application, but in the XML file instead.

2006/11/29, Antonio Petrelli <[EMAIL PROTECTED]>:


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  or <[EMAIL PROTECTED]> instead. Using Tiles does not mean that
you cannot use standard tags.

Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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  or <[EMAIL PROTECTED]> instead. Using Tiles does not mean that 
you cannot use standard tags.


Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: 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.

What is so different about each page that you have to have all those
files? If the answer is "very little" then you might want to reconsider.

If the answer is "a lot" then... you might not be using CSS in the way
(I think :) it was intended, or you may just be a special case :)

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 could just use plane HTML.

On 11/29/06, Mark Bakker <[EMAIL PROTECTED]> wrote:

well header is your naming

On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
> 
> 
> 

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: 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
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.

What is so different about each page that you have to have all those
files? If the answer is "very little" then you might want to reconsider.

If the answer is "a lot" then... you might not be using CSS in the way
(I think :) it was intended, or you may just be a special case :)

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:






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: 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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
arguments ?

2006/11/29, Dave Newton <[EMAIL PROTECTED]>:


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2006-11-29 Thread Thomas Thomas

Mark,
what are u calling header ?
Really I don't understand your solution,

How about not having so many bloody CSS files?

How ?



2006/11/29, Mark Bakker <[EMAIL PROTECTED]>:


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 of Performance ? :-(
> >
> > 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 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) ?
> > > >
> > > >
> > >
> > > 
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 of Performance ? :-(
>
> 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 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) ?
> > >
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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' 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 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) ?
> > >
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 etc etc)
header-shop.jsp (including shop.css, item.css, etc, etc)
and more

this approach will result in fewer CSS downloads at one page load.

I hope this is more clear... I don't know if this is a smart thing to
do in your situation. downloading 100Kb CSS is not a performance
bottle neck. In most cases the CSS files will be zipped and transfered
to the client. Transfering files in .zip must be turned on your
webserver.

Again if you have several Mb's of CSS files it is maybee interesting
to do something about it, otherwise just stick with your original
approuch.

On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:

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 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 you can also go for  Chris route.
>
>
> On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
> > 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 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) ?
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 you can also go for  Chris route.


On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
> 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 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) ?
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 you can also go for  Chris route.


On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:

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 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) ?
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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) ?
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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) ?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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-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 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.


2)
Since the head tag is in the page (jsp in my case) that defines the layout
I need to put ALL the css files of the ALL the webpages.






















































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.


2)
Since the head tag is in the page (jsp in my case) that defines the layout
I need to put ALL the css files of the ALL the webpages.