| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 563 人关注过本帖
标题:JSF的一个问题
只看楼主 加入收藏
支离破碎
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:737
专家分:0
注 册:2007-1-4
收藏
 问题点数:0 回复次数:1 
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>&nbsp;&nbsp;</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>中的代码都不能正常显示。。。。有人知道为什么吗?
搜索更多相关主题的帖子: JSF 
2007-01-18 17:38
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
收藏
得分:0 

有什么提示信息么?
访问a.jsp要用a.faces来访问


win32汇编
病毒 加密
目前兴趣所在
2007-01-18 18:48
快速回复:JSF的一个问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016308 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved