Re: include jsp across multiple web applications in tomcat



I would like to have a single jsp that I can use across multiple
applications (using tomcat) without having to deploy multiple copies
of the jsp (similar to the way you can deploy class files or jar files
to the shared folder, but instead of a class file or jar file. I
would like to deploy the jsp and be able to call jsp:include or
jsp:directive.include from multiple applications to include this file
in a given jsp). Is this possible?

Yes it is possible what you are looking for is JSTL core tag library
tag, <c:import> search for a tutorial on how to use it. I think your
problem will be solved. But then there are some complications such as
use of images in the imported content, which is presented in this
article

http://www.ibm.com/developerworks/java/library/j-jsp06173.html#N10102

Though I have not tried it, using absolute urls in the imported
content should solve it.

Pritam
.



Relevant Pages

  • include jsp across multiple web applications in tomcat
    ... I tried searching on 'jsp include tomcat multiple' and didn't find ... of the jsp (similar to the way you can deploy class files or jar files ...
    (comp.lang.java.programmer)
  • Re: include jsp across multiple web applications in tomcat
    ... I tried searching on 'jsp include tomcat multiple' and didn't find ... Sharing of other resources across multiple applications would also be ...
    (comp.lang.java.programmer)
  • Tomcat 4.1.3 configuration problem :-(
    ... in the jsp file,I am importing a class file in root and some class ... jsp files does not give any error for the class files ... in the package, but for all the class files outside the package, i am ... Everything works fine for 4.0.6 tomcat version. ...
    (comp.lang.java.programmer)
  • jsp on Tomcat
    ... I'm really new to jsp (and java). ... newly compiled class files. ...
    (comp.lang.java)
  • Re: Deploying Crystal Enterprise examples with Netbeans
    ... I've tried the Business Objects web forum, ... >for learning how to display reports over the web. ... >I worked with JSP and Tomcat, and it seems to me that things have ... >These are found in the WEB-INF\lib directory, in jar files. ...
    (comp.lang.java.programmer)