There is.
Get a RequestDispatcher for you jsp (from the ServletContext), and use the
method include(req, resp).

-- Ben

> -----Original Message-----
> From: Jim Preston [mailto:[EMAIL PROTECTED]]
> Sent: 12 July 2000 18:13
> To: [EMAIL PROTECTED]
> Subject: Re: Including JSP file in a servlet
>
>
> No. A servlet is just a Java class, there's no such thing as
> an include.
>
> --Jim Preston
>
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Arnab Chatterjee
> Sent: Wednesday, July 12, 2000 3:47 AM
> To: [EMAIL PROTECTED]
> Subject: Including JSP file in a servlet
>
>
> Can we include a jsp file in a servlet as we include a Jsp
> file in a jsp
> file with the following
> syntax
> <%@include file="/lds/homebt.jsp"%>
>
> Thanks
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to