File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to include one HTML file in anothe HTML file.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to include one HTML file in anothe HTML file.." Watch "How to include one HTML file in anothe HTML file.." New topic
Author

How to include one HTML file in anothe HTML file..

Chetan Dorle
Ranch Hand

Joined: Aug 06, 2009
Posts: 71

Hi Guys,


Can anyone suggest how to include one HTML file in another...


Thanks in advance ..............



Good day........



Regards,
Chetan.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Maybe your web server supports server-side includes (SSI)? Or maybe you're using JSP (which have import facilities)? Or are you asking about something on the client side? Static or dynamic? Knowing more detail would help us help you.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

There is no native facility in HTML for inclusions. As Lester pointed out, you need to use a server-side mechanism *.








* Caveat: you could sort of fake a client-side include with Ajax, but that's really not a recommended approach.

This message was edited 1 time. Last update was at by Bear Bibeault



[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: How to include one HTML file in anothe HTML file..
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture