• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Just want to ask ... I cannot use normal JSP syntax inside the template ?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to modify something inside ...

(to make it only quote the latest thread....)

Thanks
[originally posted on jforum.net by Ryu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ryu wrote:I want to modify something inside ...

(to make it only quote the latest thread....)

Thanks



The 2.x versions of JForum uses FreeMarker as the template system. JSP will be the choice for JForum 3 though (We are in early development stage on that).

Please visit http://freemarker.sourceforge.net/ for more info.
[originally posted on jforum.net by lazee]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

lazee wrote:The 2.x versions of JForum uses FreeMarker as the template system. JSP will be the choice for JForum 3 though (We are in early development stage on that).



Why do you want to use JSP? I think JSP sounds good, but I don't know why. :-)
[originally posted on jforum.net by MyJForum]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

MyJForum wrote:
Why do you want to use JSP? I think JSP sounds good, but I don't know why. :-)


For one Reason because FreeMarker has limited programming capabilities. FreeMarker just generates textual pages that display the prepared data using templates, where as everything has to be done in the backend.

FreeMarker engine itself knows nothing about HTTP or servlets and simply generates text. I think right now only FreeMarker version 2.0 and up allow JSP taglibs ..so if we are using an older version this is also an handicap..
[originally posted on jforum.net by incricket]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

incricket wrote:

MyJForum wrote:
Why do you want to use JSP? I think JSP sounds good, but I don't know why. :-)


For one Reason because FreeMarker has limited programming capabilities. FreeMarker just generates textual pages that display the prepared data using templates, where as everything has to be done in the backend.

FreeMarker engine itself knows nothing about HTTP or servlets and simply generates text. I think right now only FreeMarker version 2.0 and up allow JSP taglibs ..so if we are using an older version this is also an handicap..



excatly.... i just want to put some basic logic inside the template ...
[originally posted on jforum.net by Ryu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Honestly I think the free maker template system is BETTER than jsp. Because it's limited as a template language it prevents a merger of the programming and the templates. Although it seems inconvenient that you can not stab random bits of jsp in here and there LONG TERM merging the template with code is a disaster. You can still insert logic, but it must be drawn from the underlying classes. So just edit the classes using java it's not difficult. I would perfer some sort of PLUGIN class library that the template language could access for addons. But I think it's always best to keep template languages for templateing. The seperation is what I think jFoum has OVER the php systems, which are just a merged mess. And also almost totally unmodifiable. BECAUSE every upgrade destroys all your custom work.

And to cap my point about what a mess it can be, check the poster out:
He wants to only quote the latest thread...

This seems like logic that should be imbeded in the TEMPLATE? I can only imagine the mess. This logic should got in the underlying JAVA CLASS files if you ask me. Then tirggered by a small change to the template for those that want it.

[originally posted on jforum.net by gwoodruf]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

herrbert wrote:I'm relatively new to Java. I just want to express my opinion. When I started to learn web programming, I tried jsp first. Later stumbled to JForum and FreeMarker. Freemarker makes things so simple for me. I didn't bother to learn jsp deeper any more.



There are pros and cons about everything in life. FreeMarker can be used badly, so can jsp. It's all about taste.

We have chosen to use JSP for now. But we have also chosen to use Spring. This means that we will be able to make this a choice in the future. Meaning that both jsp and other template solutions can be supported. But I don't see that coming in version 3.0.
[originally posted on jforum.net by lazee]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IMHO, one of the big advantages that JSP has over FreeMarker is that it's a widely excepted standard. As such, a lot more tools know how to deal with it.

This means that the "Look and Feel" folks, can use WYSWIG tools like Dreamweaver to do page layout/css changes. DW does a decent job of displaying most JSP pages and knows how to identify and display as R/O included files like header/footers.

For the developer set, stuff like MyEclipseIDE (Eclipse add-in) knows JSP almost well enough to give the same coding advantages that Eclipse has in Java, such as in editor compiling/problem identification before it goes to the server, etc.

FreeMarker has some neat features as well, but it just isn't as well integrated in the tools marketplace.

As related aside: I hope that jForum does not get too custom tag happy and end up developing it's own language. (I've seen projects that do that). Personally, I'm not a big Tag fan because unlike plain ol' Java it tends to make documentation, debugging, modification much harder.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm relatively new to Java. I just want to express my opinion. When I started to learn web programming, I tried jsp first. Later stumbled to JForum and FreeMarker. Freemarker makes things so simple for me. I didn't bother to learn jsp deeper any more.
[originally posted on jforum.net by herrbert]
 
There's a way to do it better - find it. -Edison. A better tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic