view.jsp

来自「精通EJB3源码」· JSP 代码 · 共 50 行

JSP
50
字号
<%@ page contentType="text/html;charset=GBK" %>
<%@ include file="/news/top.jsp" %>
<html>
<head>
<title>信息浏览</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="8" >
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <th>
      信息浏览<hr size=1>
    </th>
  </tr>
</table><f:view> 
<div align=center>
  <table width="700" cellspacing="1" cellpadding="4" align="center">
    <tr> 
      <th class="table_b_2" width="113" align="right">新闻标题</th>
      <td class="table_b" width="472"><h:outputText value="#{newsView.news.title}"/>&nbsp;</td>
    </tr>
    <tr> 
      <th class="table_a_2" width="113" align="right" valign="top">目录</th>
      <td class="table_a" width="472"><h:outputText value="#{newsView.news.catalog.name}"/>&nbsp; </td>
    </tr>
	<tr> 
      <th class="table_b_2" width="113" align="right">信息来源</th>
      <td class="table_b" width="472"><h:outputText value="#{newsView.news.source}"/></td>
    </tr>
    <tr> 
      <th class="table_b_2" width="113" align="right">发布时间</th>
      <td class="table_b" width="472"><h:outputText value="#{newsView.news.createdate}">
              <f:convertDateTime pattern="yyyy-MM-dd"/>
           </h:outputText></td>
    </tr>
    <tr> 
      <th class="table_b_2" width="113" align="right" valign="top">内容</th>
      <td class="table_b" width="472"><h:outputText value="#{newsView.news.content}" escape="false"/></td>
    </tr>
  </table>
  <table width="600" align="center" cellpadding="2" cellspacing="2">
    <tr>
      <td align="center">
        <input type="button" name="Button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
      </td>
    </tr>
  </table>
</div>  </f:view>
</body>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?