A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
cross context jsp include
Joined: Jul 21, 2004
Sep 29, 2004 18:36:00
"A" forwarding to "a.jsp" under project a. In "a.jsp" I have the
following JSTL line :
<c:import url="/includes/doingheader.htm" context="/extemplates/"/>
but when this runs it produces the following exception :
: Unable to get
Context: "/extemplates/" and URL: "/includes/doingheader.htm". Verify
values and/or enable cross context access.
"extemplates" is a web project B defined in MyEclipse 3.81 with a folder
How do I allow "a.jsp" to cross reference another project (B).
Can someone steer me in the right direction please.
Author and ninkuma
Joined: Jan 10, 2002
Sep 29, 2004 21:52:00
Set the crossContext attribute to "true" for the Context entry in server.xml
Aside: why are you using JSTL 1.0 with Tomcat 5? You should be using JSTL 1.1.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: cross context jsp include
Difference JSP File & JSP Page
cross context access c:import
diff. between jsp:include and include directive
Forward to different URL and pass parameters
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015