Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

include in anothetr page

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic