You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "zeallousbigpond.net.au" <ze...@bigpond.net.au> on 2003/10/08 06:01:40 UTC
include statement in servlets
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
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: include statement in servlets
Posted by Tim Funk <fu...@joedog.org>.
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??
>
> Anson
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: include statement in servlets
Posted by Jon Wingfield <jo...@mkodo.com>.
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 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org