CVS: TapestryBook/examples-library/src/java/bannerads/library/impl XMLBannerSource.java,1.1,1.2

Howard Lewis Ship <[email protected]> Mon, 14 Jul 2003 04:18:25 -0700
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv7099/examples-library/src/java/bannerads/library/impl

Modified Files:
	XMLBannerSource.java 
Log Message:
Build the path to the banner.xml file properly (it was breaking in Tomcat).

Index: XMLBannerSource.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples-library/src/java/bannerads/library/impl/XMLBannerSource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XMLBannerSource.java	13 Jul 2003 22:42:15 -0000	1.1
--- XMLBannerSource.java	14 Jul 2003 11:18:23 -0000	1.2
***************
*** 71,75 ****
                  cycle.getRequestContext().getServlet().getServletContext();
              IResourceLocation location =
!                 new ContextResourceLocation(servletContext, "WEB-INF/" + _bannersFile);
  
              Banner[] banners = read(location);
--- 71,75 ----
                  cycle.getRequestContext().getServlet().getServletContext();
              IResourceLocation location =
!                 new ContextResourceLocation(servletContext, "/WEB-INF/" + _bannersFile);
  
              Banner[] banners = read(location);
***************
*** 113,116 ****
--- 113,119 ----
  
          URL fileURL = location.getResourceURL();
+         
+         System.out.println("*** fileURL = " + fileURL);
+         
          List banners = null;
          try



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1