D
Daniel
(Sorry, I forgot to post the code in my previous post...here it is...)
I am using Tiles with Struts.
In Tiles, I have a common layout page which all other pages use. The common
layout page has an include at the top of the page. I have three other
sections in the page including a menu, the body, and the footer.
The problem I am having is that the include at the top of the page has
imports, taglib definitions, and Java objects that I need for the rest of
the page, including the part for the menu, body, and footer. However, when I
try to view those pages, I get an error because one or all of those
mini-sections (menu, body, footer) complains it cannot find an object or
something (the object was defined in the include file!).
Am I missing something?
Here's the common layout page:
<%@ include file="../include/MasterInclude.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title><tiles:getAsString name="title"/></title>
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/layout/main.css">
</head>
<body leftmargin="0" rightmargin="0" topmargin="0">
<table border="0" width="100%">
<tr>
<td>
<center>
<tiles:insert name="Header.jsp"/>
</center>
</td>
</tr>
<tr>
<td>
<center>
<tiles:insert name="body"/>
</center></td>
</tr>
<tr>
<td>
<center>
<tiles:insert page="Footer.jsp"/>
</center>
</td>
</tr>
</table>
</body>
</html>
I am using Tiles with Struts.
In Tiles, I have a common layout page which all other pages use. The common
layout page has an include at the top of the page. I have three other
sections in the page including a menu, the body, and the footer.
The problem I am having is that the include at the top of the page has
imports, taglib definitions, and Java objects that I need for the rest of
the page, including the part for the menu, body, and footer. However, when I
try to view those pages, I get an error because one or all of those
mini-sections (menu, body, footer) complains it cannot find an object or
something (the object was defined in the include file!).
Am I missing something?
Here's the common layout page:
<%@ include file="../include/MasterInclude.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title><tiles:getAsString name="title"/></title>
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/layout/main.css">
</head>
<body leftmargin="0" rightmargin="0" topmargin="0">
<table border="0" width="100%">
<tr>
<td>
<center>
<tiles:insert name="Header.jsp"/>
</center>
</td>
</tr>
<tr>
<td>
<center>
<tiles:insert name="body"/>
</center></td>
</tr>
<tr>
<td>
<center>
<tiles:insert page="Footer.jsp"/>
</center>
</td>
</tr>
</table>
</body>
</html>