>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.

Hmm..I am successfully calling servlets like so:

<jsp:include page="/servlet/com.company.package.servlet_name">

That does work.

>> But I receive a message that says: Error 404 /servlet/gnujsp not found

I think this means its looking in the /servlet/ dir, set up under your web
server or servlet engine. I am using orion, and as long as I specify
classpaths in the config files, it works fine. You use the /servlet/ to
specify looking under the classpath I guess. Not sure why the /servlet/ is
there if my servelts are in C:\somedir\www\classes\com\company\etc..

But it does work for me. I wish I could understand this process better. I
have yet to find any really good documentation on the whole classpath and
/servlet/ stuff.



Kevin Duffey
[EMAIL PROTECTED]

===========================================================================
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