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>