Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to include a HTML Page into another HTML page

 
Sree Reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, How could i include a HTML Page into another HTML page. I searched all the net, and no luck.
Thanks,
Sree
 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that it is possible simply using
HTML but you should JSPs
Just keep the two html files as jsp files and use
say a.jsp & b.jsp .You want to include b.jsp in a.jsp,
In a.jsp add this code were you want to include b.jsp
<jsp:include page="b.jsp" flush="true">
Do not include <HEAD> or <BODY> tags inside b.jsp
 
Sree Reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you ..
I cann't use either JSP/ASP. basically i have got a menu(HTML CODE) which has to be incorporated in all my other HTML Pages.
I tried to Keep all the code in one javascript function[ i used document.write() to print all my lines] ,
and included in all pages. It works fine. But when i try to print in Prinout the menu is not coming .
Any Solution?
Thanks,
Sree
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What web server? Apache gives you this capability with "server-side includes".
hth,
bear
 
Sree Reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is IIS
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah..
server side includes might help..
on iPlanet i know how to use SHTML extensions meant for server side includes...
no idea about IIS though..
regards
maulin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic