Tripat Kharbanda wrote:
> 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'm a bit confsed about what you're trying to do here, but it seems to
me that what you want is:
<SERVLET>bla bla</SERVLET>
This would call the servlet and include it's output in the HTML.
Using jsp:include as you're trying to do it won't work since you have to
work with the relative URL. try calling the servlet like this:
<jsp:include page = "../../servlets/OptionList" flush="true" />
sven
--
======================================================================================
Sven van 't Veer http://www.cachoeiro.net
Java Developer [EMAIL PROTECTED]
======================================================================================
===========================================================================
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