You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Hua Hou <hu...@handango.com> on 2003/04/24 22:02:41 UTC

Is this a bug?

I have the following webapps setup

webapps/include, which is a context and has the following jsp files:
  XB.jsp and XC.jsp
  In XB.jsp, I have <jsp:include page="XC.jsp"/>

webapps/siteA, which is another context and has the following jsp file:
  XA.jsp, inside XA.jsp I have the following code

	ServletContext thisContext = getServletContext();
	ServletContext includeContext = thisContext.getContext("/include");
	includeContext.getRequestDispatcher("/XB.jsp").include(request, new
ServletResponseWrapperInclude(response, out));

The log file is as following:

2003-04-24 14:51:28 JspEngine --> /XC.jsp
2003-04-24 14:51:28 	     ServletPath: /XA.jsp
2003-04-24 14:51:28 	        PathInfo: null
2003-04-24 14:51:28 	        RealPath:
D:\TomCat4\bin\..\webapps\siteA\XC.jsp
2003-04-24 14:51:28 	      RequestURI: /siteA/XA.jsp
2003-04-24 14:51:28 	     QueryString: null
2003-04-24 14:51:28 	  Request Params: 


Should the real path be "D:\TomCat4\bin\..\webapps\include\XC.jsp"? Am I
missing something here? Is this a bug?

Thanks.

Hua

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org