File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 2 with Freemarker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 with Freemarker" Watch "Struts 2 with Freemarker" New topic

Struts 2 with Freemarker

Kim Long

Joined: Jun 06, 2008
Posts: 9

i have doing some tests with freemarker latley and it seems nice.
sadly there are not many exmaples about best practise solution or i didnt found them. what i want to achieve is that i can build my own libary and import this into my template files, which is working quiete well. the next step i wanna do but i really dont know how is that i for example define a variable in my templte like and i want the framework struts 2 handle or to pick which template actually will be shown there or included.
so maybe i have a propertie file where i can do a mapping? or do i have to write it somehow myself? i really didn't found any helpful example how to achiev this or even if its possible. the problem is that i'm a beginner, and i try to evolve by making tutorials or examples.
so i don't know really where or how to start.
i hope someone can help me, thanks in advance.

jQuery in Action, 3rd edition
subject: Struts 2 with Freemarker
It's not a secret anymore!