nbubna 2003/10/29 17:00:57 Modified: src/java/org/apache/velocity/tools/view/tools ImportTool.java Log: we don't need to hold on to the ViewContext here Revision Changes Path 1.2 +4 -7 jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/tools/ImportTool.java Index: ImportTool.java =================================================================== RCS file: /home/cvs/jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/tools/ImportTool.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ImportTool.java 30 Oct 2003 00:11:56 -0000 1.1 +++ ImportTool.java 30 Oct 2003 01:00:57 -0000 1.2 @@ -69,7 +69,7 @@ * <p>Description: a general-purpose text-importing mechanism for templates</p> * <p>Usage: * - * Just call $import.getString("http://www.foo.com/bleh.jsp?sneh=bar") to insert the contents of the named + * Just call $import.read("http://www.foo.com/bleh.jsp?sneh=bar") to insert the contents of the named * resource into the template. * * @author <a href="mailto:[EMAIL PROTECTED]">Marino A. Jonsson</a> @@ -78,8 +78,6 @@ public class ImportTool extends ImportSupport implements ViewTool { - protected ViewContext context; - /** * Default constructor. Tool must be initialized before use. */ @@ -96,7 +94,7 @@ throw new IllegalArgumentException("Tool can only be initialized with a ViewContext"); } - this.context = (ViewContext) obj; + ViewContext context = (ViewContext) obj; this.request = context.getRequest(); this.response = context.getResponse(); this.application = context.getServletContext(); @@ -123,5 +121,4 @@ } } - -} \ No newline at end of file +}
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]