📄 displaycategory.jsp
字号:
<!--
Copyright 2006 Borys Burnayev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<%@ page import="com.rdacorp.petstore.domain.Category"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html locale="true">
<head>
<title>
PetStore Category View
</title>
<html:base />
<link rel="stylesheet" type="text/css" href="../css/petstore.css" />
</head>
<%Category category = (Category) session.getAttribute("category");
String imagePath = category.getImagePath();
%>
<body class="bodystyle" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" background="<%=imagePath%>" style="background-repeat: no-repeat" onload="parent.frames.navigation.location.reload();">
<div class="categoryDescription">
<bean:write name="category" property="description" />
</div>
<div class="categoryName">
<bean:write name="category" property="code" />
</div>
<table cellspacing="1" cellpadding="4">
<tr class="tableHeader">
<th>
Product ID
</th>
<th>
Name
</th>
</tr>
<logic:iterate id="product" name="category" property="products" type="com.rdacorp.petstore.domain.Product">
<tr class="tableRow">
<td>
<html:link action="/displayProduct" paramId="productCode" paramName="product" paramProperty="code">
<bean:write name="product" property="code" />
</html:link>
</td>
<td>
<bean:write name="product" property="name" />
</td>
</tr>
</logic:iterate>
<tr class="tableHeader">
<th>
</th>
<th>
</th>
</tr>
</table>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -