returnView must also be a public method. On Tue, May 25, 2010 at 6:30 AM, boardtc <[email protected]> wrote: > We are stuck with Velocity 1.4 at the moment. > > I have a java public final class ApplicationConstants which is full of > final static constants, e.g. COUNT and a static string method, returnView > which takes a string, e.g "test". I add it to my context like > context.put("ApplicationConstants", new > FieldMethodizer("com.myco.ApplicationConstants")); > In my template > #set($count = $ApplicationConstants.COUNT) > works but > #set($count = $ApplicationConstants.returnView("test")) > does not. > > Any advice appreciated. > > Cheers, > > Tom. >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
