Farhad Enayati
Farhad Enayati

Reputation: 161

use common jsp in all other pages

i want add a common page head.jsp in all other page, in any directory

on some pages, this code works

<c:import url="common/head.jsp" ></c:import>

and, on the other pages, this code

<c:import url="<c:url value='/common/head.jsp' />" ></c:import>

However, none of the codes do not work on all pages

Upvotes: 0

Views: 329

Answers (1)

Udit Saini
Udit Saini

Reputation: 101

You can use Tiles API to get the required template.

Visit http://tiles.apache.org/framework/tutorial/basic/pages.html for more details

Upvotes: 2

Related Questions