Andy Clark wrote:

I want Jasper to look for JSP and Tag files in a
specific location (e.g. based on a request param);
and then fall back to a default location if the
file is not found. This would be extremely useful
for skinning a webapp.


We do something a little like this in a database application to allow sites to create custom pages on a per-database or per-view level. There's a directory of default JSP files which can be overridden by creating subdirectories. When the controller servlet is supposed to forward to a given JSP, it checks the request for the database and view names and first looks for a JSP in jsp/<database>/<view>, then in jsp/<database>, then defaults to the one in jsp if no custom version was found. To allow sites to customize JSPs that are included by the standard JSPs, we wrote a custom include tag that does the same lookup.

I'm not sure what you'd do about tag files. Aren't they resolved at page compilation time, so you can't change where the tag points to at request time? Maybe your application's tag files could include their bodies somehow.

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

Reply via email to