• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic