File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include in anothetr page

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic