You shouldn't point to the servlet code directory, but to the servlet URL.
<jsp:include page = "/servlets/OptionList" flush="true" />
Geert Van Damme
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tripat Kharbanda
> Sent: donderdag 17 augustus 2000 18:02
> To: [EMAIL PROTECTED]
> Subject: including servlet output in jsp file
>
>
> Hi people!!!!!!!
>
> I am new here. I have a very basic question(for the gurus) but for me its
> been nearly a day pulling my hair for this.
>
> what i am trying to do is to call servlet from the jsp page and get the
> output generated by the servlet into that jsp file. for this purpose i
> choose to use
>
> <jsp:include page = "../../WEB-INF/servlets/OptionList" flush="true" />
>
> but this gives the following error in the browser window
>
> Included servlet error: 404: File Not Found
> /jsp/maps/../../WEB-INF/servlets/OptionList
>
> but if i append ".class" to the servlet file path it displays the binary
> code of the class file. That means that the path for the servlet
> is correct.
>
> i am using jswdk-1.0.1 on win'98
>
> Please help.
>
> ==================================================================
> =========
> 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