Answer Posted / irene
Html on it's own does not support this.
1. Use server side includes. JSP and servlets are good
options.<%@ include file="filename" %> or
<jsp:include page="filename" />
where file name should be .html or .jsp
*Use this code in a file with a jsp extension.
This works fine if you have a web server - an IDE like RAD.
Develop your page with a jsp entension instead of html, add
this code to include another file, view it in a browser and
click on View>Source and copy the code generated and save
that code as your html document. The included jsp file is
translated into html, and merged with the main file
*You need a web server to be able to view jsp files
This will not help if you do not have a web server in your
development environment.
Another method. Add this line to the
As in Ans 1, ask your web server host if server side
scriting is supported. Good luck
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the use of hidden field in html?
How do I make sure my framed documents are displayed inside their frameset?
What is datalist in html?
What is html5 vs html?
Do you have to close br tags?
What is difference between html 4 and html 5?
Can html5 replace javascript?
What does dhmu mean in texting?
Why is html5 so popular nowadays?
Why do we use html?
What is a nav tag?
How to write the opening tag of an xhtml element?
Which is the current version of html?
how do I make a picture a link?
What is div id?