view.jsp

来自「Java企业级开发项目实践,这是他的附光盘」· JSP 代码 · 共 96 行

JSP
96
字号
<!--设计开发查看商品页面-->
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<table bgcolor="#666666" cellpadding="1" cellspacing="0" border="0" width="500">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="500">
<tr>
<td bgcolor="#fecc51">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="500">
    <tr>
<td bgcolor="#d6e0ed">
      &nbsp;&nbsp;<bean:message key="label.view"/>&nbsp;

    </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%"></td>
</tr>
    <tr>
<td>
<table bgcolor="#f2f2f2" width="500" cellspacing="0" border="0">
      <tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%"></td>
</tr>
<!--显示商品记录-->
<logic:present name="productsForm" scope="request">

        <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Products.productname"/></b></td><td width="76%">
              <bean:write name="productsForm" property="productname" scope="request"/>

            </td>
</tr>
        <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Products.typesname"/></b></td><td width="76%">
              <bean:write name="productsForm" property="typesname" scope="request"/>

            </td>
</tr>
        <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Products.salename"/></b></td><td width="76%">
              <bean:write name="productsForm" property="salename" scope="request"/>

            </td>
</tr>
        <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Products.martprice"/></b></td><td width="76%">
              <bean:write name="productsForm" property="martprice" scope="request"/>

            </td>
</tr>
        <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Products.favoprice"/></b></td><td width="76%">
              <bean:write name="productsForm" property="favoprice" scope="request"/>

            </td>
</tr>
        <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Products.content"/></b></td><td width="76%">
              <bean:write name="productsForm" property="content" scope="request"/>

            </td>
</tr>

</logic:present>
<!--商品记录不存在,显示记录不存在提示信息-->
<logic:notPresent name="productsForm" scope="request">
  <tr>
    <td>
    <bean:message key="error.notfound"/>
    </td>
  <tr>
</logic:notPresent>

</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

⌨️ 快捷键说明

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