• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Initializing JForum without calling the first 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 there,
I'm currently implementing JForum into my own web app.
I'm using SSO since my whole app is a community.

What I did is, implement the 3 latest Topict to my startpage using the following code:


I use the net.jforum.dao.generic.GenericTopicDAO Object to get the topic list.
JForum is implemented as an iframe somewhere in forum.html.
Everything works fine if the user starts on the forum.html page after login.
When the user starts with the regular index page, where I would like to have the latest 3 topics listet, I get a NullPointerException


I guess that happens because JForum has not yet been initialized. How can I initialize it manually so I get access to the topics? Keep in mind that I'm using SSO which means the login mechanism should be called too.

Thanks for your help,
Norbert
[originally posted on jforum.net by TheSmile]
 
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 should initialize JForumExecutionContext, as in:



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