Update of /cvsroot/roller/roller/src/org/roller/presentation/tags
In directory sc8-pr-cvs1:/tmp/cvs-serv1540/src/org/roller/presentation/tags
Modified Files:
IncludePageTag.java
Log Message:
IncludePageTag needs VelocityHelper too
Index: IncludePageTag.java
===================================================================
RCS file:
/cvsroot/roller/roller/src/org/roller/presentation/tags/IncludePageTag.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** IncludePageTag.java 3 Jan 2003 21:55:58 -0000 1.6
--- IncludePageTag.java 31 Jan 2003 01:49:08 -0000 1.7
***************
*** 19,22 ****
--- 19,23 ----
import org.roller.presentation.RollerRequest;
import org.roller.presentation.velocity.Macros;
+ import org.roller.presentation.velocity.VelocityHelper;
***************
*** 29,32 ****
--- 30,35 ----
private static Log mLogger =
LogFactory.getFactory().getInstance(IncludePageTag.class);
+
+ private VelocityHelper mVHelper = null;
/** @jsp:attribute required="true" */
***************
*** 76,79 ****
--- 79,83 ----
VelocityContext vcontext = new VelocityContext();
Macros macros = new Macros( pageContext );
+ macros.setVelocityHelper(mVHelper);
vcontext.put("macros",macros);
***************
*** 91,94 ****
--- 95,108 ----
return Tag.SKIP_BODY;
}
+
+ /**
+ * Sets the vHelper.
+ * @param vHelper The vHelper to set
+ */
+ public void setVelocityHelper(VelocityHelper vHelper)
+ {
+ mVHelper = vHelper;
+ }
+
}
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
|