diff --git a/projects/samskivert/src/java/com/samskivert/velocity/InvocationContext.java b/projects/samskivert/src/java/com/samskivert/velocity/InvocationContext.java index 17b6e5b2..3ed43e34 100644 --- a/projects/samskivert/src/java/com/samskivert/velocity/InvocationContext.java +++ b/projects/samskivert/src/java/com/samskivert/velocity/InvocationContext.java @@ -1,5 +1,5 @@ // -// $Id: InvocationContext.java,v 1.1 2001/10/31 09:44:22 mdb Exp $ +// $Id: InvocationContext.java,v 1.2 2003/06/28 17:11:54 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -72,6 +72,22 @@ public class InvocationContext extends VelocityContext return RuntimeSingleton.getTemplate(path); } + /** + * A convenience method for putting an int value into the context. + */ + public void put (String key, int value) + { + put(key, new Integer(value)); + } + + /** + * A convenience method for putting a boolean value into the context. + */ + public void put (String key, boolean value) + { + put(key, new Boolean(value)); + } + protected HttpServletRequest _req; protected HttpServletResponse _rsp; }