Re: include statement in servlets

2003-10-08 Thread Tim Funk
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

RE: include statement in servlets

2003-10-08 Thread Nathan Christiansen
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

Re: include statement in servlets

2003-10-08 Thread Tim Funk
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

Re: include statement in servlets

2003-10-08 Thread Jon Wingfield
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

include statement in servlets

2003-10-07 Thread zeallousbigpond.net.au
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 -