You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/07/19 20:00:39 UTC
cvs commit: jakarta-tomcat/src/admin/WEB-INF/classes/tadm AntProperty.java
costin 01/07/19 11:00:39
Modified: src/admin/WEB-INF/classes/tadm AntProperty.java
Log:
More meaningful message.
Revision Changes Path
1.3 +4 -0 jakarta-tomcat/src/admin/WEB-INF/classes/tadm/AntProperty.java
Index: AntProperty.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/admin/WEB-INF/classes/tadm/AntProperty.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AntProperty.java 2001/05/18 04:46:36 1.2
+++ AntProperty.java 2001/07/19 18:00:38 1.3
@@ -40,6 +40,10 @@
getServletContext();
ServletContext targetCtx=(webapp==null) ? thisCtx:
thisCtx.getContext( webapp );
+ ServletContext rootCtx= thisCtx.getContext("/");
+ if( webapp!=null && !"/".equals( webapp) &&
+ ! "".equals(webapp ) && rootCtx == targetCtx )
+ throw new JspException( "Can't find context " + webapp );
value=targetCtx.getRealPath(location);
}