gumuruh
gumuruh

Reputation: 2570

How to set Icon for JSP or Servlet Web App

I know that we need to put this line of code in a HTML page for having an icon (corner of the website).

 <link rel="shortcut icon" href="fav.ico" />

but if i have many JSP(s) and Servlet(s), is there any simple way instead of put that line of code into every single page of JSP(s) or even Servlet(s)?

Upvotes: 0

Views: 1397

Answers (1)

Mohsen
Mohsen

Reputation: 4643

The common way is that you write some codes as header and import it in all jsp pages like this:

<%@ include file="/common/header.jsp"%>

There are other decoration frameworks like sitemesh which you can create template page with lots of abilities for your hole website.

Upvotes: 2

Related Questions