JSF的一个问题
1:footer.jsp,代码如下:<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td height=50 align=center><font face=verdana,arial size=1 color=#000000 class="content">
<h:outputText value="#{messages.footer_right_information}" /></font></td>
</tr>
</table>
2:header.jsp代码如下:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
<head>
<title>AM Offline</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="../include/ramsstyles.css" type="text/css">
<link rel="stylesheet" href="../include/stylesheet.css" type="text/css">
</head>
3:head_logo.jsp代码如下:
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td colspan="2"><t:graphicImage value="../images/sfanew_prudential_logo01.gif" border="0" /></td>
</tr>
<tr>
<td width="221"><t:graphicImage value="../images/sfanew_prudential_logo02.gif" border="0" /></td>
<td bgcolor="#FF0000" width="100%" nowrap><font face="verdana,arial" size="-1" color="#FFFFFF" class="header_title_small"><b><t:outputText value="#{messages.header_welcome}"></t:outputText><SUP><t:outputText value="#{messages.header_welcome_tm}"></t:outputText></SUP></b></font></td>
<td bgcolor="#FF0000" align="right" nowrap><font face="verdana,arial" size="-1" color="#FFFFFF" class="header_title_small"><b><t:outputText value="#{today}"><f:convertDateTime timeZone="GMT+8" pattern="dd MMMMM yyyy,E hh:mm aaa"/></t:outputText></b></font> </td>
<td bgcolor="#FF0000"></td>
</tr>
</table>
...................
4,一个要显示的页面:a.jsp代码如下:
<%@include file="../include/header.jsp" %>
<f:view>
<%@include file="../include/head_logo.jsp" %>
....................
..................
.................若干代码.
<%@include file="../include/footer.jsp" %>
</f:view>
-----------------------------------------------------------
问题:包含在<f:view>中的代码都不能正常显示。。。。有人知道为什么吗?