• 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

Integrating JForum with Struts tiles 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
I tried to integrate JForum with a struts application that uses tiles but could not get it to display the JForum page(s). I want to be able to display the JForum page(s) within the contentarea of my struts tiles app. Any help will be appreciated.

tiles-defs.xml entry

<!-- classic-layout -->
<definition name="doc.classic.layout" path="/layouts/classic-layout.jsp">
<put name="title" value=".title" />
<put name="menu" value="/common/menu.jsp" />
<put name="contentarea" value="/common/body.jsp" />
<put name="footer" value="/common/footer.jsp" />
</definition>

<definition name="doc.forum.page" extends="doc.classic.layout">
<put name="title" value="Forum Discussions" />
<put name="contentarea" value="/forum/list.page" />
</definition>


struts-config.xml entry:

<action <br /> path="/forum" <br /> type="com.simpaq.common.action.ForumAction" <br /> name="defaultForm" <br /> scope="request" <br /> validate="false" <br /> input="doc.forum.page">
<forward name="success" path="doc.forum.page" redirect="false"/>
</action>

Thanks.

gtata
[originally posted on jforum.net by gtata]
 
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
The easiest way to do this is to implement an SSO solution between your app and jForum. Modify the header/footer template files to display minimum of stuff. Then use an IFRAME in your content section.

A more CPU intensive method that I've heard about is to use HTTPClient to connect to jForum and do URL re-writes.

A Gee Whiz / Time is no problem possibility would be to totally modify the templates to only produce XML and write a totally Ajax based front end to use in your content section.
[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
Thanks for the suggestion.

Did your team use the iframe approach in this forum? I see that there is sort of a left nav with the RELEASE 2.1.8 download menu block, the CONTRIBUTE menu block etc.... and on top you have sort of like tab folder-like links, and in the middle is the JFroum app. Did you use the iframe to achieve this layout?

Thanks.

gtata
[originally posted on jforum.net by gtata]
 
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
This site is done by using the standard jforum method of modifying the header.html and footer.html files. These are used to wrap all the pages in the same navigation / look and feel as the main HTML-only site.

In case you didn't know, jForum's skin comes from Freemarker.org template files located in the templates/default directory. Best practice for modifying the skin is to copy the default dir to a new directory in the templates dir. Then change the config settings to use your custom skin. Makes updates and finding the original reference files much easier.
[originally posted on jforum.net by monroe]
 
Don't sweat petty things, or pet sweaty things. But cuddle 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