Paul,
I'm using the version which embeds Tomcat.
I'm going to have to check my Tomcat config on my other box. I
might have done something in server.xml to permit absolute addressing
within includes.
I'll probably just add my include directory into my application
wars. There are only five apps which need access to the include
folder, the small amount of code duplication shouldn't be a problem.
Thanks for the reply.
Bob
On Aug 28, 2006, at 11:36 AM, Paul McMahan wrote:
Bob, The way I read the JSP spec it looks like Geronimo is handling
the page attribute correctly. It says that the path should be
interpreted in context of the web application. Are you using the
version of Geronimo that embeds Tomcat or Jetty? If the Tomcat
version then I would expect the results to be exactly the same to what
you see in standalone Tomcat since AFAIK Geronimo does not alter the
request before handing it off to Tomcat.
Best wishes,
Paul
On 8/27/06, Bob Dushok <[EMAIL PROTECTED]> wrote:
I'm attempting to include content using the <jsp:include> tag. I'm
the following code within a JSP:
<jsp:include page="/includes/header.html"/>
When the page is loaded, the message "The requested resource (/staff/
includes/header.html) is not available" appears. I'm specifying an
absolute path, but Geronimo appears to be treating it as a relative
path (my app contains <context-root>/staff</context-root> in
geronimo-
web.xml).
I tried something similar using JSTL:
<[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:import url="/includes/header.html" />
Again, "The requested resource (/staff/includes/header.html) is not
available" appears when the page is loaded.
I've used similar code within Tomcat without any problems. I'm new
to Geronimo. is there something I missed in the config? Do I need
to enable absolute path usage?
Thanks,
Bob