This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
The java filter servlet can get input page and replace some words. Why don't you use this way to output page?
Are there advantages using templates? [originally posted on jforum.net by richardsclin]
templates are easier to maintain; they have control statements; with templates you can have multiple different layouts without any change at all to the core code; everyone may easy change its contents; don't require recompilation of the code... and so on.
Rafael [originally posted on jforum.net by Rafael Steil]
That's not necessary, since freemarker ( or another template engine, like velocity ) provides all necessary stuff for workting with templates.
I see no gain on using servlet filters for doing some "replaces", since there is a lot more than that, like conditional template rendering, for example.
Rafael [originally posted on jforum.net by Rafael Steil]
How about using filter servlet to read template pages and replace some keywords or control codes to get output pages? Is this way better than using freemarker library? [originally posted on jforum.net by richardsclin]
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Gift giving made easy with the permaculture playing cards