Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic