tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: Best way to include common html
Date Tue, 09 Jan 2007 22:51:45 GMT
Is there actually any real requirements for those html-code portions
to be outside of the webapp?
If no - move them into the webapp :-)

If no - write a custom tag which caches the files via normal
FileSystem read and dumps them out in the jsp buffer (of course its
better to have a class that caches the binaries and the tags only gets
the data from this class, but you haven't asked for details, right?)

regards
Leon



On 1/9/07, Scott Cowley <scott.cowley@utah.edu> wrote:
>  The problem is that I can't reference JSP includes from app code if the
> included file is outside the app's root.
> (At least with the default installation of Tomcat).
>
> -----Original Message-----
> From: Scott Purcell [mailto:spurcell@ilevy.com]
> Sent: Tuesday, January 09, 2007 1:24 PM
> To: Tomcat Users List
> Subject: RE: Best way to include common html
>
> Possibly a framework for templating. Tiles, SiteMesh they are created
> for exactly what you are looking for. Of course you can use JSP includes
> ... but the frameworks do a better job IMOHO.
>
>
>
> -----Original Message-----
> From: Scott Cowley [mailto:scott.cowley@utah.edu]
> Sent: Tuesday, January 09, 2007 2:14 PM
> To: Tomcat Users List
> Subject: Best way to include common html
>
>
> What is the best approach to get shared HTML files, (such as header and
> footer files) located outside each appBase,
> included into an application (.jsp) under Tomcat?
>
> SSI filter ?
> Or some context resource setting ?
>
> Thanks for any help.
>
> - s.c., university of utah
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> 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
>
> ---------------------------------------------------------------------
> 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
>
>

---------------------------------------------------------------------
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