Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Navigation bar, header and footer of bootstrap, common to all pages

I am using Bootstrap for designing web application. I have used navigation bar, header and footer in my home page. Now i want all those to be available for all web pages without rewriting the same code again and again everywhere. what should be done to get that.

like image 975
dgl viru Avatar asked Jun 24 '15 06:06

dgl viru


People also ask

Is a navigation header that is placed at the top of the page in Bootstrap 4?

The navigation bar is placed at the top of the page. Basic Navigation Bar: The . navbar class is used to create a navigation bar. The navbar is created responsive by using .

Is header same as navbar?

The header contains introductory information about the document. The nav is a menu that links to other documents.

Which class is used in Bootstrap for navigation bar?

Navigation Bars A standard navigation bar is created with <nav class="navbar navbar-default"> .


1 Answers

Make two Jsp Pages header.jsp and footer.jsp. which contains respective code. and include these pages in every where by using jsp:include

 e.g <jsp:include="header.jsp"/>
like image 167
Manjeet Brar Avatar answered Oct 03 '22 05:10

Manjeet Brar