Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes @ include ..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "@ include ..... " Watch "@ include ..... " New topic

@ include .....

Samith Nambiar
Ranch Hand

Joined: Mar 14, 2001
Posts: 147
<%@ include file="header.html" %>
is it necessary that header.html should be present in the same directory as the jsp file?
i get an error when i use a context relative path
for example :
Context Name : demo
JSP directory : demo/web/jsp
HTML directory : demo/web/html
the following code gives me an error
<%@ include file="/demo/web/html/header.html" %>
why is this so?
I agree. Here's the link:
subject: @ include .....
It's not a secret anymore!