wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How to include a HTML Page into another HTML page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to include a HTML Page into another HTML page" Watch "How to include a HTML Page into another HTML page" New topic
Author

How to include a HTML Page into another HTML page

Sree Reddy
Greenhorn

Joined: Dec 20, 2002
Posts: 13
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

Joined: May 03, 2001
Posts: 163
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


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Sree Reddy
Greenhorn

Joined: Dec 20, 2002
Posts: 13
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

Joined: Jan 10, 2002
Posts: 60773
    
  65

What web server? Apache gives you this capability with "server-side includes".
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sree Reddy
Greenhorn

Joined: Dec 20, 2002
Posts: 13
It is IIS
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to include a HTML Page into another HTML page
 
Similar Threads
HTML include Page
include file in jsp
Include a HTML file in another HTML File
html includes
how to include one html inside another