You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcella Turner <mt...@hotmail.com> on 2004/05/25 19:13:23 UTC
Tiles performance - jsp vs jspf
I'm very excited to be converting a Stuts application to Struts Tiles.
However, I have a consideration that I could use some best practices
opinions on.
The current application has severa .jspf files which are used as includes to
main jsp files. While doing a proof of concept for converting to Tiles, I
noticed that if I put the following tiles definition:
<definition name="tiles.Template"
path="WEB-INF/layouts/DefaultLayout.jsp">
<put name="siteTitle" value="siteTitle" />
<put name="navigatorFilename" value="/common/nav_bar.jspf" />
<put name="linkId" value="home" />
</definition>
That the page loaded with an uncompiled nav_bar. So I changed the
definition to nav_bar.jsp which worked.
However, I assume that .jspf's were used in this application because they
offer some perfomance benefit, i.e. the fragment is only cached once or
something.
Another trick i used to retain the .jsp extention was to put the .jspf
inside a .jsp file like so:
nav_bar.jsp -----
<%@ include file="nav_bar.jspf" %>
----------------------
This technique seems round about - does it offer any preformance benefit?
Thanks
_________________________________________________________________
Learn to simplify your finances and your life in Streamline Your Life from
MSN Money. http://special.msn.com/money/0405streamline.armx
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org