- 3
- 0
- 约1.38万字
- 约 12页
- 2016-09-10 发布于天津
- 举报
何敬岚_0923010088.doc
广州大学学生实验报告
开课学院及实验室:计算机科学与工程实验室 2012/6/11
学院 计算机科学与教育软件学院 年级/专业/班 计科091 姓名 何敬岚 学号 0923010088 实验课程名称 Web应用技术Web站点设计
该实验要求学生掌握,与数据库的连接等,并灵活应用该语言解决一些实际的问题;
二、实验内容
自选主题设计并建立一个网站(如个人网站,花店网站,书店网站,网上论坛等)。
三、实验原理
Web应用技术
四、实验设备
Tomcat 6.0
XP
Myeclipse
五、实验要求
实验成绩根据包含所学的web技术:静态HTML, CSS,JavaScript, JSP, JavaBean, Servlet技术给定:
六、实验程序
%@ page contentType=text/html; charset=gb2312 language=java import=java.sql.* errorPage= %
%@ page import=com.wgh.DB.connDB %
%
connDB conn=new connDB();
String username=(String)session.getAttribute(username);
ResultSet rs_sale=conn.executeQuery(select top 2 ID,GoodsName,price,nowprice,picture from tb_goods where sale=1 order by INTime desc);
int sale_ID=0;
String s_goodsname=;
float s_price=0;
float s_nowprice=0;
String s_picture=;
ResultSet rs_new=conn.executeQuery(select top 4 ID,GoodsName,nowprice,introduce,picture from tb_goods where newGoods=1 order by INTime desc);
int new_ID=0;
String new_goodsname=;
float new_nowprice=0;
String new_introduce=;
String new_picture=;
%
html
head
title网上购物系统/title
meta http-equiv=Content-Type content=text/html; charset=gb2312
link href=CSS/style.css rel=stylesheet
/head
body
table width=790 border=0 cellspacing=0 cellpadding=0 align=center
tr
td class=tableBorder
jsp:include page=navigation.jsp/
table width=790 height=236 border=0 align=center cellpadding=0 cellspacing=0
tr
!-- td width=182 height=182 valign=top--
!-- jsp:include page=right.jsp/--
!-- /td--
td valign=toptable width=100% border=0 cellpadding=0 cellspacing=0
tr
td width=93 height=50 h2 align=center查询/h2 nbsp;/td
td colspan=2 background=
jsp:include page=search.jsp/
/td
/tr
/table
table width=100% border=0 cellspacing=0 cellpadding=0
tr
td width=69% height=189 valign=toptable width=100% border=0 cellspacing=0 cellpadding=0
tr
td width=98% height=80 h2 align=center特价物品模块/h2 nbsp;/td
td width=2%/t
原创力文档

文档评论(0)