This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "@ include ..... " Watch "@ include ..... " New topic
Author

@ include .....

Samith Nambiar
Ranch Hand

Joined: Mar 14, 2001
Posts: 147
hi
<%@ 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?
thanks
/SAmith
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @ include .....
 
Similar Threads
JSP and Path related Question
jsp:include -> page attribute.
path related problem
jsp:include page="header.html" causes IllegalStateException
Problem in importing html file in jsp