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."
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.