First things first... can you call the servlet directly and get a response?
(Sorry if this is too obvious, but you only mention that it compiles, not
that it works.) If not, then you need to figure out that problem first.
Second things second... just for grins, assuming you can connect to the
servlet directly, try using an absolute path instead of a relative one. (I'm
not saying you should leave it this way, even if it works.)
Third things third... if you can do that and still can't figure out the
relative path*, then there is likely something going on in the mapping being
done by the app server. You might need to provide the list with more
information. (Like which app server you're using.)
* - Note: Here's another obvious item that's really easy to miss. Be sure to
count the directories and the dots used to dereference those directories
properly -- there's a big difference between "../hello" and "./hello" and
"../../hello".
~Mike
----- Original Message -----
From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 3:20 AM
Subject: Re: <jsp:include />
> Ya, I compiled Servlet file...
> It is not producing any error...
> and Servlet is not getting invoked....
> and i have doubt that there is some problem with relative path....
> and my jsp is here : webapps-->myCon-->jsp-->XXX.jsp(Test.jsp is also
here)
> and servlet is here :
> webapps--->myCon-->Web-Inf-->classes-->TestServlet.class
> i have this snippet in XXX.jsp...
> <jsp:include page="../servlet/TestServlet"
flush="true"/>--------->PRODUCES
> ERROR
> <jsp:include page="Test.jsp" flush="true"/>--------->WORKS FINE
> IS it OK?
>
> -raj-
[previous messages in thread snipped]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html