search_deal.jsp
来自「构建一个以商品销售为主体的电子商城,功能描叙如下: 1.按商品大类及商品名称进」· JSP 代码 · 共 40 行
JSP
40 行
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="189" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" background="images/searchResult.jpg"> </td>
</tr>
<tr valign="top">
<td height="134" align="center"><table width="90%" height="23" border="0" cellpadding="0" cellspacing="0" class="tableBorder_B_dashed">
<tr>
<td height="23"> [${typeName }] 查询关键字:[${key }]</td>
</tr>
</table>
<c:forEach var="vgoods" items="${results }">
<table width="96%" height="23" border="0" cellpadding="0" cellspacing="0" class="noborder">
<tr>
<td width="27%" height="23" style="padding-left:20px;"><a href="goodsDetails.lzw?id=${vgoods.id }">${vgoods.goodsName }</a> </td>
<td width="50%">${fn:substring(vgoods.introduce,0,20) }
<c:if test="${fn:length(introduce)>20 }">...</c:if></td>
<td width="14%" align="center">${vgoods.nowPrice }(元)</td>
<c:if test="${sessionScope.username!=null }">
<td width="9%" align="center">
<input name="see" type="button" class="btn_grey" onClick="window.location.href='cartAdd.lzw?goodsID=${vgoods.id }'" value="购买">
</td>
</c:if>
</tr>
</table>
</c:forEach>
</td>
</tr>
<tr>
<td height="38" align="right" background="images/center02.gif"><a href="sale.jsp"><br>
<br>
</a></td>
</tr>
</table></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?