• 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

How to integrate forum with my web app?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to integrate forum with my web app?

I use Servlet, MySQL, Struct, JSTL and some custom tags in JSP.
Also I make custom login/security for web app.

Is it possible to integrate this forum in my web app?
If yes, how can I do this?
I can't find any documentation?

And how can I use/configure my login (user name/password) within forum login?

Thanks.
[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
JForum 2.1 have "custom authenticators", which you can use to do the job. I'll release jforum 2.1 this week.

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
thanks rafael. I really look forward too version 2.1

Henkie
[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
Have you found a solution yet to this problem? I also wan't to integrate the forum in my system with an alternative login.

So if you know how I really appriciate that.

Regards,

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

Rafael Steil wrote:JForum 2.1 have "custom authenticators", which you can use to do the job. I'll release jforum 2.1 this week.

Rafael



I'm not a great knower of authentication tools, so what's a "custom authenticators" and how I can use it to make the object of the topic available?
[originally posted on jforum.net by 0m4r]
 
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
It is a very simple idea. In the file SystemGlobals.properties you will find a key named "login.authenticator", which specifies which class is responsible for handling user authenticator. The default implementation is src/net/jforum/drivers/external/DefaultLoginAuthenticator.java

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
so, if I need to integrate the authentication of JForum with the tomcat one (for example, the form or basic auth login task) what I need to change?
[originally posted on jforum.net by 0m4r]
 
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 need to make a classe which implements the LoginAuthenticator interface and register it using the key "login.authenticator", as shown in the previous post.

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
If you want to integrate the authentication, check the SSO section in the documentation

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
Firstly i'd like to thank the guys @ jforum for making this software open source.

Now here's my question:

I am also trying to integrate this app in my website and cant find any doco on how to do so. My website built in JSP/servlets,mysql. Once I can find this out I can use the authentication tips provided earlier in this thread.
[originally posted on jforum.net by rchandra]
 
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
Hi Rafael
mate, apart from the authentication integration I want to integrate the jforum application in my website such that I looks like its a part of my website. For this purpose i want to insert a header on top the forum and also change the servlet mepping etc. Only documentation that found in this regards is :
http://www.jforum.net/doc/ExecutionContext
The code snippet on the page still does not explain hoto exactly pass the execution to jforum code from my class that creates the executionContext. ?

Any ideas on how can this kind of integration be done?
I am starting to think of rebuilding Jfocum web application from its source and putting it in my website after modyfig the source.
[originally posted on jforum.net by rchandra]
 
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
There are a lot of topics on how integrate jForum into your existing app's look and feel.

You can do a code level integration, but basically that means that you're signing up for a lot of maintenance coding (or limited feature set) as jForum evolves and your mods need to catch up.

If you don't want to deal with that, basically, you have two main choices:

First, you can use the Header.htm and Footer.htm template files to make the "wrapper" for jforum look like your site. That's what this site does to make the main site and the jforum part of it look the same.

Second, you can think about using iframes or the like. It's not hard to trim down the templates to just show the jforum "content" pages (e.g. the white part of this page).

An alternative way to do this is to use the iframes to display any "dynamic" wrapper info. E.g. change the header/footer templates to include your apps header and footer code.
[originally posted on jforum.net by monroe]
 
reply
    Bookmark Topic Watch Topic
  • New Topic