• 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

Need Help

 
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 am trying to add a customized faq page to the jforum. First I added a method called listFaq() to the ForumAction.Java and I call the set template method with the a template key that i added in the template keys. I then added a new template key to the TemplateKeys.java called FORUMS_FAQ = forums.list.faq. Then i went into the the templetmappings config file and added forums.list.faq=FAQ.htm . I then try to go to http://localhost:8080/jforum/forums/list.faq.page and it says resource is unavailabe. What am I missing? Is there an easier way to add a custom template?
[originally posted on jforum.net by Anonymous]
 
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
To access http://localhost:8080/jforum/forums/listFaq.page (note that is listFaq, and not list.faq), add the following to WEB-INF/config/urlPattern.properties:



That will do the job.

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
Hey thanks alot! I got it working prefectly now, Im working on this stuff for a project at my school www.neumont.edu so you will be seeing me around alot for the next couple of months. Thanks again...
[originally posted on jforum.net by jgautier]
 
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
Great!! Welcome to JForum

Rafael
[originally posted on jforum.net by Rafael Steil]
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic