Re: Simple Velocity question

Thomas Köllmann <[email protected]> Wed, 29 Sep 2004 21:52:04 +0200
Newsgroups gmane.comp.java.jpublish.devel
Organization Hamburger Gesellschaft mit beschränkter Hoffnung
Message-ID <[email protected]>
Hi, Florin and everybody!

After I first worked around the problem using something like

#set($links =3D ["index", "ueber", "projekte", "archiv", "links",
"kontakt"]) ## list all pages
#set($linkNames =3D ["=DCbersicht", "=DCber uns", "Projekte", "Archiv",
"Links", "Kontakt"]) ## name them

and then using the names with

$linkNames.get($velocityCount)

inside the foreach loop I decided this method was working but too
inelegant. I'm trying to do this stuff The Right Way :-)

So I build me a Velocity from source (the latest nightly build is from
2003!) and it now seems to work as advertised. I still need to rewrite
my template, though.

Thanks a lot for your help! I appreciate that very much.

Greetings,
 - Thomas


--=20
# PGP key auf Wunsch per e-mail / PGP key sent on request


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl