Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: include statement in servlets

Tim Funk

2003-10-08

Replies:

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.