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

Integrating JForum in my webapp

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, i am search to fix my problem.

I am doing one webapp with JForum integrated.

I load JForum in one <iframe>, all ok, but, i have problem to integrate one login method that found who I want:

- When i want to register one new user, i load "/user/insert.page" url in <iframe>, and all found well.

- After, i want login this user (register/exist previosly in JForum):
First, i load one "user panel" in my webapp, out of jforum, loading all information of jforum_dbtables with the user information, any problem, i use jforum_dbtables without problem (i use jforum_dbtables to manage my webapp data; users, news, etc...), but, i dont kwow how i can load this user, loading previusly in my webapp when this load user go to jforum.

I was building one class to load JForumContext, with the documentation information:



Systemglobals: All default.

Thanks by help!
[originally posted on jforum.net by MiLLeN]
 
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 a look at the userDAO. There should be some (static?) method how to get that DAO object. There you can call methods to load the user from db ...
[originally posted on jforum.net by Sid]
 
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
Please?
[originally posted on jforum.net by MiLLeN]
 
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
I only want load JForumContext in one "Controller" (Spring) class of my app, and load one user in the place where JForum load user...

NOTE: I have installed JForum in my app with source code into my app, all integrated.

�Who i can load JForumContext in my "Controller" class?
�Where i put the username in JForumContext?

Example:

/Load JForumContext
JForumContext jf = new JForumContext();

//If JForum load username in this session.
HttpSession ss = jf.getSession();

//And load the user.
ss.setAttribute("username", myuser);

//Redirect to JForum home page and username appear connect.
request.getRequestDispatcher("/forums/list.page").forward(request, response);
//or use ModelAndView object...
[originally posted on jforum.net by MiLLeN]
 
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
Did you solved? I got same problem
[originally posted on jforum.net by blackskop]
 
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

blackskop wrote:Did you solved? I got same problem



No, I am waiting for help...

If you or i fix our problem, help other...
[originally posted on jforum.net by MiLLeN]
 
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
Sorry, with minimum information and vague references to a 3rd party "Spring Controller" (and personally knowing a minimum about Spring) it's hard to reply to this.

I suggest you need to dig into the jForum code and your own code and come back with specific questions and details.
[originally posted on jforum.net by monroe]
 
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

monroe wrote:Sorry, with minimum information and vague references to a 3rd party "Spring Controller" (and personally knowing a minimum about Spring) it's hard to reply to this.

I suggest you need to dig into the jForum code and your own code and come back with specific questions and details.



Hi Monroe, thanks for your reply.

I have been insvestigating, and i open other thread more specific.

Thanks.
[originally posted on jforum.net by MiLLeN]
 
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
Nothing?
[originally posted on jforum.net by MiLLeN]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic