• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Add topic from different web application

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way to add a topic from a separate web application through an api, direct database action or 'web service'? I need to be able to post a discussion for an article published elsewhere (actually, on same server, but different web app).

Any advice?


[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
We still don't have any "official" API. If you need it quickly, the best way would be to hack the "insertSave()" in the PostAction ( net.jforum.view.forum ) class to access username and password from the request, so you can make a JSP page or anything else that POSTs the data to jforum. It should work.

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
I need to do this as well. Certain topics will be generated in a different application and I need to automatically create a forum for each one of them. There may well be hundreds of topics that correspond to forums and there may be multiple forums per topic.

If there's no web service API for this then I suppose I'll just have to use httpunit to step through the process in the admin panel.

Also, I suppose I'll have to implement an alternative forum list.page since it obviously won't work to have hundreds of forums listed on that page.

Is there any way to force the forum urls to have names that match the forum name? For instance, the "Pac-Man happy fun time" forum could be
/jforum/forums/show/Pac-Man+happy+fun+time
I suppose that's not great in terms of URL durability since it would need to change if the forum name changed. Hmm, not sure about that one.

Regardless, I need a way to link to these newly generated forums that I create automatically. It looks like the "Click to edit" url has the forum ID in it. So, I could parse that and use it to construct the forum url. That might be tricky. I'd have to parse the page and search for the title of the forum I just created and then look for the url in the next cell.

Yuck. That's not pretty. It would be much nicer to have a web service.
[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
Well, you can make a Servlet Filter to handle the urls and convert to JForum format.. Or, of course, you can hack ActionServletRequest.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
When you say:

you can hack ActionServletRequest.java


do you mean parameters can be passed to that method? Can you please specify how this process works?
[originally posted on jforum.net by Didas]
 
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 meant that is that class which handles jforum's urls.. so, if you need, you can put some code there to handle your needs.

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 for the great visit. Click also to no deposit pacific poker games. It is, indeed, a great no deposit pacific poker games site - and can be seen at no deposit pacific poker games http://www.isavecoupons.com/no-deposit-pacific-poker.html no deposit pacific poker games. Play only here at our no deposit pacific poker games http://www.isavecoupons.com/no-deposit-pacific-poker.html no deposit pacific poker games friends and family.
[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
Go over and play download pacific poker games http://www.isavecoupons.com/pacific-poker.html download pacific poker games. Get clever in the famous download pacific poker games.
[originally posted on jforum.net by Anonymous]
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic