This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JForum and the fly likes Initializing JForum without calling the first page? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JForum
Reply Bookmark "Initializing JForum without calling the first page?" Watch "Initializing JForum without calling the first page?" New topic
Author

Initializing JForum without calling the first page?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
You should initialize JForumExecutionContext, as in:



Rafael
[originally posted on jforum.net by Rafael Steil]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Initializing JForum without calling the first page?
 
Similar Threads
how to login as admin using sso?
SSO /redirect / anonymous users
Jforum integration problem with SSO
How can we check whether a user is from Admin/Moderator/General category?
Using JForum SSO - a kludger's tale