Hi,

Firstly, the include directive's file attribute should have a slash followed by the
file name(relative path).Secondly, i don't think we can include servlets using the
include directive.I tried out, but it says bad argument to file attribute.I think
only jsp, html or text files can be included.To call servlets from a JSP page, the
forward directive can be used.Hope this helps.

Regards,
Dheepa
















"Carlos H. L�pez" wrote:

> Hi,
> I'm trying to call a servlet from a jsp. the jsp is like this:
> ---------------
> <!---->
>
> <%@ include file="EmpList" flush="true" %>
>
> <html>
> <head><title>Hello, User</title></head>
> <body bgcolor="#ffffff" background="/images/background.gif">
>
> </body>
> </html>
> ---------------
>
> But I receive a message that says: Error 404 /servlet/gnujsp not found
>
> Why does the server ask for it? I already have a /servlet/ directory,
> and I have already tried making a gnujsp/ directory inside but I allways
> get the same message... could something be wrong with the configuration?
> I'm using Apache, Apache Jserv and GnuJSP as well.
>
> Thanks in Advace.
>
> Carlos H. L�pez
> Web Developer
> Centro Nacional de Registros
> El Salvador.
>
> El Vivir es un morir
> y el morir, fin de esa muerte.
> Procura morir de tal suerte
> que comienzes a vivir.
>
> "Letter from a father to his son."
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to