This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JForum and the fly likes How to integrate forum with my web app? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "How to integrate forum with my web app?" Watch "How to integrate forum with my web app?" New topic
Author

How to integrate forum with my web app?

Migrated From Jforum.net
Ranch Hand

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

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

Joined: Apr 22, 2012
Posts: 17424
thanks rafael. I really look forward too version 2.1

Henkie
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

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

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

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

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

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

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

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

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

Joined: Apr 22, 2012
Posts: 17424
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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to integrate forum with my web app?
 
Similar Threads
hi ..some Q's
Documentation of custom integration
How to configure Custom JAAS Login Module?
Single Sign On with JSF
how to replace, tomcat-user.xml