shoppingcar.jsp
来自「eclipse中开发的航空票务系统源代码」· JSP 代码 · 共 40 行
JSP
40 行
<%@ page language="java" import="org.springframework.context.ApplicationContext" pageEncoding="gb2312"%>
<%@ page import="org.springframework.context.support.FileSystemXmlApplicationContext"%>
<%@ page import="bit.jeffy.business.ShoppingCar"%>
<%@ 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>
<head>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<table width="100%" height="439" border="1">
<tr>
<td height="22"><%@ include file="head.jsp"%></td>
</tr>
<tr>
<td height="388" valign="top" align="center">
<%
String path = (String)session.getAttribute("path");
if(path == null){
out.print("读取数据库失败");
}else{
ApplicationContext context =
new FileSystemXmlApplicationContext(path);
ShoppingCar car = (ShoppingCar)context.getBean("shopcar");
car.list(request,out);
}
%>
</td>
</tr>
<tr>
<td height="19"><html:errors/></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?