• 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

create new page

 
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,
i would like to create simple page which would return just number of users in jforum. I have created statistics.htm in template/default directory, and i changed templates mapping added display.statistics = statistics.htm and i am trying to access page as /jForum/display/statistics.page but it says page doesn't exist. Am I missing something?

Thanks for help
Pavel
[originally posted on jforum.net by palko]
 
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
You need some Java code to enable this.

In jForum, the first part of the URL after jForum (e.g. display) is a tag for the "module" you want to use. These are set in the modulesMapping.properties file and map request to a Command object subclass, e.g. PostAction

Then you need a second part of the URL to specify the "action" method in that object to call. E.g. /posts/list points to the list() method in the PostAction class.

The action method will set up the required "context" for the template page, which is found via the templateMapping file.


[originally posted on jforum.net by monroe]
 
I just had the craziest dream. This tiny ad was in it.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic