tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Souther <>
Subject Re: when to use <%@include%> when to use <jsp:include>
Date Wed, 08 Dec 2004 00:32:34 GMT
> 1/ name your JSP fragments something other than ".jsp" (".jspf" is the
> unofficial standard) such that they aren't picked up by a precompiler

If you do this, I would recommend that you do something to keep your
source from being viewed by a browser.  This can be done with a mapping,
or filter that returns a 404 status code for any requests ending in
".jspf" or by keeping your includes under WEB-INF where nosy browsers
can't go.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message