I need to use a for loop to create a number of "chunks" of repeating text.
When I create my array in the template file it works fine. E.g.
########### template file #############
#set ($client= ["X", "Y"])
#foreach($my_client in $client)
REPEATING TEXT XYZ
blah blah $my_client"
exit
########## end of template file ###########
This gives
########### Output ##################
REPEATING TEXT XYZ
blah blah X
REPEATING TEXT XYZ
blah blah Y
###################################
How ever I need to separate the template file out so that I can have
multiple properties files and then call the template file a number of times
- once with each different property file. However I can not work out how to
use an array in the properties file.
########### property file #############
client= ["X", "Y"]
a_client=Z
#################################
########### template file #############
$configList.a_client ##this works fine so I know my property file is being
used correctly
#foreach($my_client in $configList.client) ##this does not work
REPEATING TEXT XYZ
blah blah $my_client"
exit
########## end of template file ###########
########### Output ##################
Z
###################################
Any suggestion on how to correctly reference an array in the properties
file?
--
View this message in context:
http://www.nabble.com/Creating-an-array-list-in-a-properties-file-tp18855189p18855189.html
Sent from the Velocity - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]