Differences between revisions 1 and 2
Revision 1 as of 2007-10-26 22:20:17
Size: 1199
Editor: NathanBubna
Comment: rough draft of veltools2 properties config
Revision 2 as of 2009-09-20 22:06:15
Size: 1196
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
You can also configure VelocityTools2 via a properties file. Here's the same configuration as the [wiki:VelocityTools2/ConfigXml XML example], but done in properties format: You can also configure VelocityTools2 via a properties file. Here's the same configuration as the [[VelocityTools2/ConfigXml|XML example]], but done in properties format:

You can also configure VelocityTools2 via a properties file. Here's the same configuration as the XML example, but done in properties format:

tools.toolbox = request,session,application
tools.request.property.xhtml = true
tools.request.toytool = ToyTool
tools.request.toytool.restrictTo = index.vm
tools.request.custom = org.mine.CustomTool
tools.request.custom.randomProperty = whatever
tools.session.property.create-session = true
tools.session.property.create-session.type = boolean
tools.session.map = java.util.HashMap
tools.application.date = org.apache.velocity.tools.generic.DateTool
tools.data.version = 1.1
tools.data.version.type = number
tools.data.date = Mon Sep 17 10:08:03 PDT 2007
tools.data.date.class = java.util.Date
tools.data.date.converter = org.apache.commons.beanutils.locale.converters.DateLocaleConverter
tools.data.isSimple = true
tools.data.type = boolean
tools.data.foo = this is foo.
tools.data.bar = this is bar.
tools.data.dataKeys = version,date,isSimple.foo,bar,dataKeys,switches
tools.data.dataKeys.type = list
tools.data.switches = true,false,false,true
tools.data.switches.type = list.boolean

VelocityTools2/ConfigProperties (last edited 2009-09-20 22:06:15 by localhost)