论文无忧网提供:计算机毕业论文范文|计算机毕业设计|计算机毕业论文
栏目导航 ASP Java Web .NET VB6.0 JAVA VC VF DELPHI PB 计算机网络 计算机科学与技术 PHP 安卓APP 其他 C# 代写论文
当前位置: > 计算机 > Java Web >

jsp校园二手交易网

目  录

1     引言    1

内容来自论文无忧网 www.paper51.com

1.1      课题背景... 1

http://www.paper51.com

1.2      国内外研究现状... 1

内容来自www.paper51.com

1.3      本课题研究的意义... 1 内容来自www.paper51.com

1.4      本课题的研究方法... 1 copyright paper51.com

2.... 开发环境和相关知识的介绍    2

copyright paper51.com

2.1      基于B/S结构的网络交易系统概述... 2 copyright paper51.com

2.2      开发环境的介绍... 2 http://www.paper51.com

2.3      JSP的基本介绍... 3 copyright paper51.com

2.4      JAVASCRIPT的介绍... 3

paper51.com

2.5      SQL Server介绍... 4 copyright paper51.com

3     系统需求分析和设计    4 内容来自论文无忧网 www.paper51.com

3.1      功能模块的定义和划分... 4

copyright paper51.com

3.2      数据库的设计... 5

paper51.com

3.2.1     实体关系图的确立... 5 paper51.com

3.2.2     后台数据库的设计... 5

copyright paper51.com

4.... 二手交易系统的具体实施    7

http://www.paper51.com

4.1      登录模块... 7 paper51.com

4.2      快速链接及搜索模块... 10 内容来自论文无忧网 www.paper51.com

4.2.1     快速链接模块... 10 http://www.paper51.com

4.2.2     搜索模块... 14

http://www.paper51.com

4.3      物品和用户注册模块... 14 http://www.paper51.com

4.3.1     物品注册模块... 14

内容来自www.paper51.com

4.3.2     用户注册模块... 16 copyright paper51.com

4.4      信息显示模块... 17

http://www.paper51.com

4.4.1     信息显示模块的目标... 17

内容来自www.paper51.com

4.4.2     信息显示模块的主要功能和实现方法... 18 copyright paper51.com

4.5      信息列表显示模块... 20

内容来自论文无忧网 www.paper51.com

4.5.1     信息列表显示模块的目标... 20

http://www.paper51.com

4.5.2     信息显示模块的主要功能和实现方法... 21

内容来自www.paper51.com

5     系统运行测试    24 内容来自论文无忧网 www.paper51.com

结   论    24

paper51.com

参考文献    25 内容来自论文无忧网 www.paper51.com

致    谢    26 内容来自www.paper51.com

http://www.paper51.com

前台代码如下

内容来自www.paper51.com

<table width="100%"height="205" border="0"> 内容来自www.paper51.com

                 <tr> 内容来自www.paper51.com

                              <%

copyright paper51.com

                              int i=0; http://www.paper51.com

                              int j=0;

paper51.com

                              String id="";

http://www.paper51.com

                              String bianhao=""; paper51.com

                              String mingcheng="";

http://www.paper51.com

                              String tupian="";

copyright paper51.com

                               paper51.com

                               int curpage=1;//当前页

内容来自论文无忧网 www.paper51.com

                            intpage_record=6;//每页显示的记录数 http://www.paper51.com

                            intzgs=0; http://www.paper51.com

                            intzys=0; 内容来自www.paper51.com

                            //用下面的方法(sql查询完成,速度快) copyright paper51.com

                            Stringhsgnpage=request.getParameter("page");

内容来自www.paper51.com

                            Stringfysql="select count(id) as ss from shangpinxinxi";

http://www.paper51.com

                            ResultSetRS_resultfy=connDbBean.executeQuery(fysql); paper51.com

 while(RS_resultfy.next()){ copyright paper51.com

 zgs=Integer.parseInt(RS_resultfy.getString("ss"));

内容来自www.paper51.com

 zys=zgs/page_record+1;

copyright paper51.com

 } copyright paper51.com

                            if(hsgnpage!=null)

http://www.paper51.com

                            { paper51.com

                            curpage=Integer.parseInt(request.getParameter("page"));//获取传递的值,需要显示的页

内容来自论文无忧网 www.paper51.com

                            }

http://www.paper51.com

                            else copyright paper51.com

                            { paper51.com

                            curpage=1; copyright paper51.com

                            } http://www.paper51.com

                            if(curpage==0) http://www.paper51.com

                            {

copyright paper51.com

                                   curpage=1;

内容来自论文无忧网 www.paper51.com

                            }

内容来自论文无忧网 www.paper51.com

                            if(curpage>zys)

内容来自论文无忧网 www.paper51.com

                            { 内容来自论文无忧网 www.paper51.com

                                   curpage=zys;

copyright paper51.com

                            } paper51.com

                            //out.print(curpage); copyright paper51.com

       内容来自论文无忧网 www.paper51.com

                            Stringsql="select top "+page_record+" * from shangpinxinxi where idnot in (select top "+((curpage-1)*page_record)+" id fromshangpinxinxi order by id desc) ";

内容来自www.paper51.com

                             

http://www.paper51.com

                              if(sc!=null) 内容来自www.paper51.com

                              {

内容来自www.paper51.com

                                  sql=sql+"and "+ltt+" like '%"+qd+"%'"; paper51.com

                              } 内容来自论文无忧网 www.paper51.com

                              sql=sql+" order by id desc";

paper51.com

                              ResultSetRS_result=connDbBean.executeQuery(sql); copyright paper51.com

 while(RS_result.next()){

paper51.com

                                   i=i+1; 内容来自论文无忧网 www.paper51.com

                                   j=j+1;

内容来自www.paper51.com

                                   id=RS_result.getString("id");

paper51.com

                                   bianhao=RS_result.getString("bianhao"); 内容来自www.paper51.com

                                   mingcheng=RS_result.getString("mingcheng");

http://www.paper51.com

                                   tupian=RS_result.getString("tupian"); 内容来自论文无忧网 www.paper51.com

                              %> paper51.com

                   <td><table width="100%" border="0">

http://www.paper51.com

                     <tr>

内容来自论文无忧网 www.paper51.com

                       <td height="161"><p><ahref="prodetail.jsp?id=<%=id%>"><img src="<%=tupian%>" width="124" height="110"border="0"></a></p>

内容来自论文无忧网 www.paper51.com

                         </td>

paper51.com

                     </tr> paper51.com

                     <tr> 内容来自论文无忧网 www.paper51.com

                       <td><%=mingcheng%></td> copyright paper51.com

                     </tr>

内容来自www.paper51.com

                   </table>

内容来自www.paper51.com

                     </td> copyright paper51.com

                                   <%

http://www.paper51.com

                                  

http://www.paper51.com

                                   if(j==3)

内容来自论文无忧网 www.paper51.com

                                   {

copyright paper51.com

                                          j=0;

内容来自www.paper51.com

                                         

copyright paper51.com

                                          out.print("</tr><tr>"); http://www.paper51.com

                                          }

paper51.com

                                   内容来自www.paper51.com

                                   }

copyright paper51.com

                                   %> copyright paper51.com

                

http://www.paper51.com

                 </tr> copyright paper51.com

               </table>

内容来自www.paper51.com

               

paper51.com

               <p>&nbsp;&nbsp;共<%=zgs%>条记录&nbsp;&nbsp;<%=page_record %>首/页 <ahref="prolist.jsp?page=1">首页</a> <a href="prolist.jsp?page=<%=curpage-1%>">上一页</a> <A 内容来自www.paper51.com

                       

copyright paper51.com

                       href="prolist.jsp?page=<%= curpage+1%>">下一页</A> <ahref="prolist.jsp?page=<%=zys %>">尾页</A> 当前第<FONT

内容来自论文无忧网 www.paper51.com

                       color=red><%=curpage %></FONT>页/共<FONT 内容来自论文无忧网 www.paper51.com

                       color=red><%=zys %></FONT>页</p> 内容来自论文无忧网 www.paper51.com

            </td>

内容来自论文无忧网 www.paper51.com

         </tr> paper51.com

     </table></td> http://www.paper51.com

                 </tr>

http://www.paper51.com

             </table></td> http://www.paper51.com

         </tr> copyright paper51.com

       </table>这是其中一个大类的前台代码,可以看到,每一个类首先使用CSS样式对其格式作出了限定,以确保界面上的平衡和美观,其次,每一个链接都链接到后台subcatagory.JSP的程序中去,同时带上一个自己的参数id。

copyright paper51.com

------分隔线----------------------------
联系方式