You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raghuveer <ra...@infotechsw.com> on 2006/04/07 08:48:56 UTC
Struts tiles layout performance
In our Web application we are using struts,JSP for plumtree web application.
Does there will be any performance issue using Tiles if i migrate from
present normal layout to struts tiles layout
.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Struts tiles layout performance
Posted by Raghuveer <ra...@infotechsw.com>.
hi Antonio,
my web application runs both as Normal and plumtree portal.
so i want to clarify if any performance issues before implementing tiles
I have header,body,footer in my application.
header and footer are common through out application.
only "body" changes for all jsp's.I may be having 50 JSP pages.
Experts please add your comments/suggestions
<!-- Base Tiles Definition -->
<definition name="base.definition" path="/jsp/siteLayout.jsp" >
<put name="header" value="/jsp/banner.jsp" />
<put name="footer" value="/jsp/footer.jsp" />
</definition>
<!-- Tiles Definition of Main menu -->
<definition name="page.mainmenu" extends="base.definition">
<put name="title" value="Main Menu" />
<put name="body" value="/jsp/mainmenu.jsp" />
</definition>
-----Original Message-----
From: Antonio Petrelli [mailto:brenmcguire@tariffenet.it]
Sent: Friday, April 07, 2006 12:45 PM
To: Struts Users Mailing List
Subject: Re: Struts tiles layout performance
Raghuveer ha scritto:
> In our Web application we are using struts,JSP for plumtree web
application.
>
> Does there will be any performance issue using Tiles if i migrate from
> present normal layout to struts tiles layout
>
If with "normal" you mean "single JSPs", then yes, obviously there are
some performance issues. When JSPs are not compiled yet, each piece of
Tiles definitions must be compiled. After that, each tile must show its
content, thus it is like invoking several JSP pages for a single request.
But it's question of a trade-off. With Tiles you can use the "composite
view" pattern, useful if you have several reusable pieces of pages.
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts tiles layout performance
Posted by Antonio Petrelli <br...@tariffenet.it>.
Raghuveer ha scritto:
> In our Web application we are using struts,JSP for plumtree web application.
>
> Does there will be any performance issue using Tiles if i migrate from
> present normal layout to struts tiles layout
>
If with "normal" you mean "single JSPs", then yes, obviously there are
some performance issues. When JSPs are not compiled yet, each piece of
Tiles definitions must be compiled. After that, each tile must show its
content, thus it is like invoking several JSP pages for a single request.
But it's question of a trade-off. With Tiles you can use the "composite
view" pattern, useful if you have several reusable pieces of pages.
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org