Hello,
I have a general question about the <
jsp:include> tag.
Here's the situation -
I have 3 applications deployed on a server running under
Tomcat 5.5.9.
The first one contains a set of simple JSPs / static content scattered
in various locations around inside its directory structure. (Tomcat is configured to default to point to its top-level welcome file in its server's config.xml.)
The file structure looks like this:
...{Tomcat Install}/webapps/Application_Alpha
...{Tomcat Install}/webapps/Application_Beta
...{Tomcat Install}/webapps/Application_Gamma
Here's what I'd like to do: Alpha contains all the common look/feel files that enforce a standard I'm trying to impose on all the pages for this server machine. (That is, common JSPs, Cascading Style Sheets, Images, etc. )
For applications Beta and Gamma, what I'd like to do in their JSP pages is
reference the JSPs located under Alpha like so,
index.jsp (under Application_Beta/Gamma) welcome page:
<!--
...(xhtml declarations)...
-->
<jsp:include page="http://this.example.server/Application_Alpha/resources/header.jsp">
<body>
... (whatever)
</body>
</html>
The question I have is - is this possible ? and if so, how would I go about doing this ?? I've had some success referencing locations such as .css files and .gifs, but so far, have yet to be successful getting .jsp files to work.
I appreciate your help.
Thank you,
Chad