Re: include jsp across multiple web applications in tomcat
- From: Pritam Barhate <pritambarhate@xxxxxxxxx>
- Date: Fri, 4 Jan 2008 20:50:34 -0800 (PST)
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
.
- References:
- include jsp across multiple web applications in tomcat
- From: grasp06110
- Re: include jsp across multiple web applications in tomcat
- From: grasp06110
- include jsp across multiple web applications in tomcat
- Prev by Date: Re: Great SWT Program
- Next by Date: Re: Great SWT Program
- Previous by thread: Re: include jsp across multiple web applications in tomcat
- Next by thread: Showcase your J2ME applications on Facebook
- Index(es):
Relevant Pages
|
|