Thanks PIerre...
It is hard to pronounce your name....
As i got doubt..it clearly related to relative path....
I just referred JSP1.1 spec....
it is clearly mentioned in 2.5.2 section about relative paths...
and what u said is exactly same...
thanks...
-raj-
-----Original Message-----
From: Pierre-Yves Saumont [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 7:17 PM
To: [EMAIL PROTECTED]
Subject: Re: <jsp:include />
Hi,
The include is context relative, ie, you must not specify the context. So,
the correct syntax is:
<jsp:include page="/servlet/TestServlet" flush="true"/>
which is equivalent to:
<% request.getRequestDispatcher("/servlet/TestInclude").include(request,
response); %>
You must not forget the leading / (if you forget it, the path will be
relative to the current directory, and not to the context document root
directory).
Pierre-Yves
-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de M H
Rao
Envoy� : mercredi 25 juillet 2001 11:26
� : [EMAIL PROTECTED]
Objet : Re: <jsp:include />
I hope this will work..
<jsp:include page="/mycon/servlet/TestServlet" flush="true"/>
good luck
--mhrao
----- Original Message -----
From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 1:50 PM
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-
>
> -----Original Message-----
> From: shivaraj [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: <jsp:include />
>
>
> What error it is giving? Have u compiled the servlet?
>
> ----- Original Message -----
> From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 25, 2001 1:03 PM
> Subject: <jsp:include />
>
>
> > Hi all,
> > when i use like this it works fine..
> > <jsp:include page="Test.jsp" fluch="true"/>
> > but when i use TestServlet.java in place of Test.jsp, it is not
> > working....
> > I am using Tomcat with IIS on Windows2000...
> > Is there any funda behind it?As i know u can use both JSPs and
> > Servlets in jsp action tag...In fact any dynamic resources...Am i
missing
> > something or everything?
> > (dont say go use JSP..bcoz..I need to connect to DB and do some
> > processing..thats why i dont want to use JSPs...i want go for
> > Servlets...
> > -raj-
> >
> >
>
___________________________________________________________________________
> > 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
> >
> >
>
>
___________________________________________________________________________
> 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
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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
___________________________________________________________________________
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
___________________________________________________________________________
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