tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Davidson <bi...@seatadvisor.com>
Subject Re: <jsp:include> versus <% include %>
Date Thu, 05 Jun 2008 20:50:03 GMT
Bill Davidson wrote:
> <%@include ... %> happens at compile time.  That is, only the first
> time the JSP page is loaded.  The included data ends up in the compiled
> servlet.  It has been my experience that you can have other JSP 
> directives
> in the included file and they will be properly interpreted.
I forgot to add, if the included file changes, then the JSP will not reflect
that change unless you force it to be recompiled.
> <jsp:include ... /> happens at run time, every time the JSP page is
> loaded.  The included data is not compiled into the servlet, rather
> the generated servlet has code to re-read the included file every time
> it runs.  It has been my experience that JSP tags in the included file
> will not be interpreted so you're pretty much limited to HTML (or 
> whatever
> your final output format to the user agent is) in the included file.
In this case, if the included file changes, the JSP should reflect the
changes on the next page load, without a recompile.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message