This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

FreeMarker An alternative to JSP

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are planning to use FreeMarker as an alternative to jsp in one of our project. Would somebody please give idea about FreeMarker

1. What is the stability if use in large project or is there any functionality limitation issue?
2. Any starting tutorial which show examples how to use with servlet?
3. Is there any plugin available for eclipse?
4. How can we get support for FreeMarket?

Thanks a lot!
 
Marshal
Posts: 67300
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What advantage will using Freemarker give you over JSP?

Tools such as Freemarker were popular in JSP 1.x days because, well, JSP 1.x, in which you had to use scriptlets, pretty much sucked. JSP 2, however, allows you to use pure templates without scriptlets (when used correctly, of course).

So what advantage will you get by choosing a proprietary solution over a standardized one?
 
Bijj shar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some points:

Standardized issues:

1. Depends too heavily on Java syntax
2. Problem for Client side developer (HTML authors) who is not very familiar with Java syntax
3. Very hard to debug and maintain the code
4. It doesn't allows methods to be called with arguments

Proprietary solution:

1. It separate the Client side developer (HTML authors) from the programmers
2. Designers can change the appearance of a page without programmers having to change or recompile code
3. Templates do not become polluted with complex program fragments
4. It allows methods to be called with arguments
5. Templates can be loaded from a JAR on a remote server
 
Bear Bibeault
Marshal
Posts: 67300
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. Depends too heavily on Java syntax
2. Problem for Client side developer (HTML authors) who is not very familiar with Java syntax
3. Very hard to debug and maintain the code
4. It doesn't allows methods to be called with arguments



Your JSP knowledge is apparently very antiquated. As I pointed out, modern JSP uses no Java code. None. So your points 1 through 3 are invalid. Point 4 is also solved with the newest version of JSP and the EL.

1. It separate the Client side developer (HTML authors) from the programmers
2. Designers can change the appearance of a page without programmers having to change or recompile code
3. Templates do not become polluted with complex program fragments
4. It allows methods to be called with arguments
5. Templates can be loaded from a JAR on a remote server



Similarly, your points 1 through 4 also apply to modern JSP. Point 5 is a differentiating factor. As far a I know, that would be difficult with JSP, so if that's important for you, it might be the reason to go with Freemarker. But every other point you've made hasn't been true for almost a decade.

But I get the impression you don't want to hear it, so I'll just bug out.
 
Skool. Stay in. Smartness. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!