If a runtime include is needed, requestDispatcher provides a include() which
is "almost" an equivalent of jsp:include.
-Tim
Nathan Christiansen wrote:
While this is true there are also ways to accomplish similar results:
- calling the service method of another servlet directly. (Not for the be
iannoni.com
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 4:32 PM
To: Tomcat Users List
Subject: Re: include statement in servlets
No. A servlet is a standard java class so you cannot perform a compile time
code include.
-Tim
zeallousbigpond.net.au w
No. A servlet is a standard java class so you cannot perform a compile time
code include.
-Tim
zeallousbigpond.net.au wrote:
How do you include a normal jsp or html page in a servlet?...
in JSP...to include a page you do:
<%@ include file="dfaf.jsp" %>
is there a similar way for servlets??
A
Have a look at the javadocs for javax.servlet.RequestDispatcher.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
Or you could look in tomcat's work directory for the java source code
generated by jasper from a jsp file.
HTH,
Jon
zeallousbigpond.net.au wrote:
How do you include a normal
How do you include a normal jsp or html page in a servlet?...
in JSP...to include a page you do:
<%@ include file="dfaf.jsp" %>
is there a similar way for servlets??
Anson
-