...the magic word is "frames"... just have the "dynamic content" in a frame or iframe, and voila
Then you can load the jforum with target="framename"
This should be what you are looking for
forcing jforum users to log on before writing is a setting within jforum, disallowing any anonymous posts for instance, or you should make an SSO. whatever suits you best [originally posted on jforum.net by Sid]
I have a based webapp, available lets say at www.example.com - and my jforum.war is available at www.example.com/forum/
Now inside my main webapp's homepage (index.jsp) I have a link that takes the user to the forum. But the forum is opened up inside an <iframe> that is inside my index.jsp.
I achieve this by setting the target for the link like so: To the forum!
Then make sure you specify the name of your iframe: <iframe name="myiframe"></iframe>
But now I am also stuck. This iframe business is holding me back because an iframe doesn't expand to fill the page (like jforum.net). Also, when the iframe's contents take up more space (height for example) than the height of the window (or the iframe for that matter), the iframe gets scrolls bars inside of it on its edges - which I really really don't like.
Sid, Rafael: how did you guys get the jforum markup to be included in your jsp template? I have done view-source on this page and I see that it is all included in tables - no sign of iframes.
I am hoping to achieve the same effect as you guys, perhaps using divs instead of tables, but in essence avoiding iframes.
Pardon that I am asking something off-topic but please help.
Thanks. [originally posted on jforum.net by konstandinos]
Another possible way to do this is to use the standard jForum template mechanism. Basically every page that jForum generates include the contents from the header.htm and bottom.htm template pages. You can use this to "wrap" jforum with the same heading, footing, and the like as your main site / application has. That's what this site does.
If you need "dynamic" information (e.g. JSP/code generated links in the header), you might think about doing the "mirror image" of what you are currently doing. E.g., modify the header.htm to use an iframe that "embeds" your jsp based header. This should be less size sensitive than the Jforum pages (plus, the back/refresh button will behave better).
FWIW, an iFrame link can target it's _parent or _top to replace the page it's on. For example, a "home" link back to your main app.
I considered doing the "mirror" approach, but that has drawbacks in my case: we have our template (header, sidebar, footer) which is part of the "base" app, and the iframe is used to load up additional webapps (jforum, jspwiki, other oss webapps).
We are essentially planning to deploy a host of OSS webapps (www.example.com/forum/ - www.example.com/wiki/ - etc) and by making them viewable inside our base webapp's iframe, they look like they're part of the base app.
By doing the mirror approach, i'd have to have header, sidebar and footer files repeated for every webapp we deploy. This really doesn't make sense in the long run. (maybe I've misunderstood you?)
Ideally I want some way to "include" or "import" the jforum "page" inside the base webapp's body div. That way the div can resize itself (ie: expand downwards should the need arise) automatically.
I hope what I want is doable - any suggestions? [originally posted on jforum.net by konstandinos]
Yes, my master! Here is the tiny ad you asked for: