Try

sc = getServletContext();

System.out.println("MyFileSystem Says ROOT is: " + sc.getRealPath("/");
System.out.println("MyFileSystem Says My Servlet is located in: " + 
sc.getRealPath("/servlet/SearchServlet");

--------------------------------------

-----Original Message-----
From: Arnab Nandi [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 1:29 PM
To: [EMAIL PROTECTED]
Subject: Servlet to Servlet communucation


Hi,

In our application we need to forward the request from one servlet to
another.
When we use this
getServletConfig().getServletContext().getRequestDispatcher("/servlet/Se
archServlet").forward(request, response);

It works fine in VAJ test environment but fails on Tomcat/Apache Server.

Any pointers in this regards will be of great help

Regards
Arnab

___________________________________________________________________________
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

Reply via email to