While this is true there are also ways to accomplish similar results:
- calling the service method of another servlet directly. (Not for the beginner nor the faint of heart.)
- calling a method of another class that adds data to the response object.
- forwarding the request to another servlet or JSP (this I use extensively).
BTW, there are two ways to include in JSP. Using <%@(protected).
-- Nathan Christiansen
Tahitian Noni International
http://www.tahitiannoni.com
-----Original Message-----
From: Tim Funk [mailto:funkman@(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 wrote:
> How do you include a normal jsp or html page in a servlet?...
>
> in JSP...to include a page you do:
>
> <%@(protected)" %>
>
> is there a similar way for servlets??
>
> Anson
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)