You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peng Zhao <pz...@cs.ubc.ca> on 2003/06/12 01:02:58 UTC
Template VS JSP:include
which one is better?
As a website of n pages, the template method will have
1(template) + 2*n(one use template, the other is "content") = 2*n+1 JSPs
the jsp:include method only have
n(pages) + m(header, footer...) = n+m
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Template VS JSP:include
Posted by Max Cooper <ma...@maxcooper.com>.
You can combine the "use of template" and "content" pages into one JSP to
get n+1 JSPs.
<template:insert>
<template:put>
<!-- actual content -->
</template:put>
</template:insert>
-Max
----- Original Message -----
From: "Peng Zhao" <pz...@cs.ubc.ca>
To: <st...@jakarta.apache.org>
Sent: Wednesday, June 11, 2003 4:02 PM
Subject: Template VS JSP:include
> which one is better?
>
> As a website of n pages, the template method will have
> 1(template) + 2*n(one use template, the other is "content") = 2*n+1 JSPs
>
> the jsp:include method only have
> n(pages) + m(header, footer...) = n+m
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org