Bug 18360 - Can't import page from servlet in the same context
Summary: Can't import page from servlet in the same context
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.0.2
Hardware: All other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2003-03-26 10:57 UTC by Thomas Mathis
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Mathis 2003-03-26 10:57:24 UTC
I try to import a "servlet page" from the same context but all I get is a blank.
<c:import url="/servlet/MyTestServlet" />
The servlet returns a text like "Hello world."
Comment 1 Pierre Delisle 2003-06-18 21:58:41 UTC
This works fine for me: 

  <jsp:include page="/admin/MyServlet"/>
  <c:import url="/admin/MyServlet"/>

Give it a try with <jsp:include> as well. If both fail, this is
a pilot error. Make sure your servlet is properly declared 
in your browser.