Where is you template file (WEB-INF)? If it is, rry using relative paths to
put to the template.
ex: the line in "project.jsp" that puts to the template...
<template:put name="body" content ="../project/project_body.jsp"/>
where the path is relative to the template NOT to the "put"ing file.
Let me know this works, or I'll have a hell of a time when I deploy.
D
-----Original Message-----
From: Tim Colson [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Templates located in WEB-INF?
Is it possible to "hide" all JSP files under the /WEB-INF/ directory and
still use templates??
I had some difficulties with the following code finding the
"main_content.jsp" page. Should this work or am I trying to do something
that is known to not work?
(BTW - The code seems to run fine if I put the /jsp directory inside the
context root.)
Thanks!
Tim Colson
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<template:insert template='/WEB-INF/jsp/layout1.jsp'>
<template:put name='title'>
<bean:message key="main.menu.title"/>
</template:put>
<template:put name='header' content='/header' direct='true' />
<template:put name='sidebar' content='sidenav' direct='true'/>
<template:put name='content' content='/WEB-INF/jsp/main_content.jsp' />
<template:put name='footer' content='/footer' direct='true' />
</template:insert>