*
The moose likes JForum and the fly likes include in anothetr page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "include in anothetr page" Watch "include in anothetr page" New topic
Author

include in anothetr page

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello,
I want to include the jforum application in another page (which has a header of my site). How do I do it if I don't want to use FRAMES ?
It's like the include tag for JSP only for HTML.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hmm.. if <jsp:include> does not work for this sittuation, one possible approach is to open a socket to the page, read the entire contents, and output it using out.println()

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I've ran into a similar problem. I'm setting up my personal homepage and it uses a small jsp framework where I include the following code on each page:



I tried applying the same thing to the default jForum templates with no luck. Even if i change the file type of the header.htm and bottom.htm in the default template to .jsp the jsp code inside doesn't get parsed and jForum just outputs it to the page as plain html.
[originally posted on jforum.net by UnLoGiC]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
UnLoGiC wrote:I've ran into a similar problem. I'm setting up my personal homepage and it uses a small jsp framework where I include the following code on each page:



I tried applying the same thing to the default jForum templates with no luck. Even if i change the file type of the header.htm and bottom.htm in the default template to .jsp the jsp code inside doesn't get parsed and jForum just outputs it to the page as plain html.


I solved this for now by using an iframe and javascript, you can have a look over at http://www.unlogic.se (click on forum).
[originally posted on jforum.net by UnLoGiC]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi Rafael,
can you give an example please?

Rafael Steil wrote:Hmm.. if <jsp:include> does not work for this sittuation, one possible approach is to open a socket to the page, read the entire contents, and output it using out.println()

Rafael

[originally posted on jforum.net by Eric]
 
Consider Paul's rocket mass heater.
 
subject: include in anothetr page
 
Similar Threads
include file in jsp
Calender component
servlets + including files
<%@ include file="invoiceFtpPush.xhtml" %> in jsp
How to send link in email to jsp