You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sputnik <al...@ffxffxff.no-ip.org> on 2007/03/21 09:24:10 UTC
JSPs in JAR
is there a way to include JSP files which are located in a JAR?
i.e <%@ import file=\"/pathToJar.jar!include.jsp\"%>
afaik the jasper compiler can load taglibs out of JARs, might be that there\'s already a solution to do this with JARs?
thank you
---------------------------------------------------------------------
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
Re: JSPs in JAR
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
sputnik wrote:
> is there a way to include JSP files which are located in a JAR?
>
> i.e <%@ import file=\"/pathToJar.jar!include.jsp\"%>
>
> afaik the jasper compiler can load taglibs out of JARs, might be that there\'s already a solution to do this with JARs?
>
You can precompile JSPs before deploying, you'll have to add servlet
mapping for each precompiled JSP to web.xml. There's ant task to do the job.
You can also try Velocity.
--
Mikolaj Rydzewski <mi...@ceti.pl>