• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JForum workflow

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

I've just started playing around with JForum, but at a first glance it seems wonderful.

There's a good chance I'll use it for a new forum site but, since I need to make some modifications, I'd like to understand how things happen.

Let me say that I didn't know of FreeMarker existence before using JForum, so I will study it, too.

When I point my browser at jforum main page, using Tomcat, I am redirected to "forums/list.page" but I didn't find anything of it in the source tree, so I guess it's dynamically created.

But if I look at <tomvat-dir>/webapps/jforum/index.htm I see a redirection to it, without any jsp/servlet invocation.

In another question you suggested starting from JForum.java, but I cannot understand how that point is reached during browsing.

Could you please help me?

Many thanks,

Matteo.
[originally posted on jforum.net by pampo]
 
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

pampo wrote:Hi Rafael,



Hi Matteo!

pampo wrote:
When I point my browser at jforum main page, using Tomcat, I am redirected to "forums/list.page" but I didn't find anything of it in the source tree, so I guess it's dynamically created.



Yes. Mostly all urls are processed on the fly, eg, they're "virtual urls". You will like to take a look in the files "WEB-INF/config/urlMapping.properties", and "net/jfoum/ActionServletRequest.java".

pampo wrote:
But if I look at <tomvat-dir>/webapps/jforum/index.htm I see a redirection to it, without any jsp/servlet invocation.

In another question you suggested starting from JForum.java, but I cannot understand how that point is reached during browsing.



If you look at "WEB-INF/web.xml", you'll see that the extension "*.page" is pointing to a servlet named "JForum" ( net.jforum.JForum ). That's my Front Crontroller servlet ( aka, my "C" in MVC ). All requests pass through this class, no excluses. In the method "service()" I do the "hard" job of "discovering" what the user want to see and so son.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Many thanks!

Matteo.
[originally posted on jforum.net by Anonymous]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic