This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56549
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Sree Reddy
Greenhorn

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

Joined: Nov 04, 2001
Posts: 1865
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.


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
 
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
html includes
include file in jsp
how to include one html inside another
Include a HTML file in another HTML File