⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainmenu.jsp

📁 《精通JSP编程 》源代码(赵强那本) 很有用的源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html>
<head>
<title><bean:message key="title.index"/> </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<html:base/>
</head>
<tiles:insert page="/banner.jsp" flush="false" />
<body>
<html:form action="addBookAction">
<table width="800" border="1">
  <tr>
    <td width="129"><div align="center"><bean:message key="prompt.ISBN"/></div></td>
    <td width="162"><div align="center"><bean:message key="prompt.name"/></div></td>
    <td width="162"><div align="center"><bean:message key="prompt.author"/></div></td>
    <td width="216"><div align="center"><bean:message key="prompt.price"/></div></td>
    <td width="109"><div align="center"><html:img width="25" height="23" border="0" src="image/gouwu1.gif"/></div></td>
  </tr>
  <logic:present name="addBookActionForm" property="bookList">
         <bean:define id="pageData" name="addBookActionForm" property="bookList"/>
	  <logic:iterate id="book" name="pageData" property="data" type="edu.jnestore.beans.Book">
	  <tr>
	    <td width="129"><div align="center"><bean:write name="book" property="isbnid"/></div></td>
	    <td width="162"><div align="center"><bean:write name="book" property="name"/></div></td>
	    <td width="162"><div align="center"><bean:write name="book" property="author"/></div></td>
	    <td width="216"><div align="center"><bean:write name="book" property="price"/></div></td>
	    <td width="109"><div align="center">
	    <html:link action="addBookAction" paramId="bookISBNID" paramName="book" paramProperty="isbnid">
	    <bean:message key="prompt.addToCart"/>
	    </html:link></div>
	    </td>
	  </tr>
	</logic:iterate>  
  </logic:present>
</table>
<div align="center">
  <html:link action="/orderAction"><bean:message key="prompt.order"/></html:link>
</div>
</html:form>
<jsp:include page="pageman.jsp"/>
</body>
</html:html>

⌨️ 快捷键说明

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