This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes html into html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "html into html" Watch "html into html" New topic
Author

html into html

deep raj
Ranch Hand

Joined: Dec 11, 2009
Posts: 186
can we include html into html page
if yes can anyone tell me
i tried this
<!--#include virtual="ots/header.html" -->
but not included
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

HTML has no facilities for including files.

That has to be provided by whatever web server you are using. Which is it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
deep raj
Ranch Hand

Joined: Dec 11, 2009
Posts: 186
i have created header.html
in my website, i want that this page must included at top.
how is that possible?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

If you aren't going to answer the questions I pose I cannot help you.
deep raj
Ranch Hand

Joined: Dec 11, 2009
Posts: 186
m using apache tomcat web server
and i know to import html file into jsp page..
i want to import it in html also??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

So just use a JSP and import the common file.
 
Consider Paul's rocket mass heater.
 
subject: html into html
 
Similar Threads
include tag ???
Getting JSP given HTML(Urgent)
Resolving a URL in include action tag?
Designing HTML pages in eclipse
How to add C program executable inside a HTML file