基于JSP+SqlServer的鲜花商城系统设计与实现

目 录 
1 开发背景 1
1.1引言 1
1.2目的和意义 1
1.3开发设计思想 2
1.4开发目标 2
2.开发工具和开发环境简介 3
2.1Java Server Page 简介 3
2.2JSP技术的发展现状 3
2.3JSP技术的特点 4
2.4Eclipse简介 6
2.5Struts简介 6
3.网上花店系统分析 7
3.1系统的功能分析 7
3.2系统可行性研究 7
3.2.1技术可行性分析: 7
3.2.2运行可行性分析: 8
3.2.3经济可行性分析: 8
4系统的概要设计 8
4.1数据库系统概述 8
4.2系统功能模块设计 8
4.3数据库表设计 9
5.程序设计及主要功能 13
5.1程序说明 13
5.2系统的主要功能和具体的模块划分 13
6.总结 16
7.致谢 17
[参考文献] 18
1.3开发设计思想
本系统采用MyEclipse和Tomcat服务器为主要开发工具,SQLServer作为管理系统数据的数据库。整个系统采用Struts框架结构,符合MVC模式。MVC模式要求对应用分层,虽然要做额外的工作,但产品的结构清晰,可扩展性强、产品的应用通过MVC模式可以得到更好地体现。这恰恰是电子银行系统所需要的。电子银行系统的功能会随着客户的要求不断的扩展,因此这个系统需要不断的进行功能的升级和修改。如果采用传统的JSP+JavaBean的三层模式进行开发,将使程序的业务逻辑层和表示层之间耦合过紧,不利于日后的生机和扩展。
通过该毕业设计能够看出,在进行设计之前。设计者既考虑了系统的需求,有兼顾了运行的效率,以及今后系统的功能扩展等。使用MVC模式开发系统,这使得本系统具有运行效率好、扩展能力强、技术规范等特点。
1.4开发目标
网上花店是一种新兴的商品销售方式,优势在于经营成本低,在任何地方只要可以上网的地方就可以随时随地的订购你所想要的花朵传情达意,但是也有弊端,就是网站需要经常的维护等等存在着一些问题,只有解决好这些问题网上花店才会更加的普及起来。
理论系统功能设计目标如下:
(1) 实用性强:我们努力使系统符合实际操作流程的习惯,并尽量减少用户的输入,易学易用的友好的用户界面,满足各层次的用户使用的需求;
(2) 先进的程序结构:使用当代前卫的软件编程,能延长其生命周期,易于维护与管理;
(3) 安全可靠性高:后台维护功能齐全,根据平台在各个阶段不同的使用情况,管理人员可以设置相应的操作权限,增加系统注册,分配各个栏目的管理权限,实现系统的维护,保证系统的安全、可靠;
(4) 使用模块化设计的方法:使系统具有良好的可扩充性,以适应其不同阶段的发展需要,便于后来者分析、维护;
(5) 操作简单,维护方便:每个子系统都具有相对独立的系统维护功能

<TABLE cellSpacing=0 cellPadding=0 width=812 align=center bgColor=#ffffff 
border=0>
  <TBODY>
  <TR>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=38 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=63 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=59 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=56 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=62 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=16 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=44 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=77 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=82 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=77 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=80 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=72 border=0></TD>
    <TD><IMG height=1 alt="" 
      src="indexImage.files/spacer.gif" 
      width=34 border=0></TD></TR>
  <TR>
    <TD colSpan=6 rowSpan=2><IMG height=79 alt="" 
      src="indexImage.files/title_r1_c1.gif" 
      width=294 border=0 name=title_r1_c1></TD>
    <TD bgColor=#ffffff colSpan=7>
      <DIV align=right><A name=top></A><A 
      href="register/cart.jsp"><IMG height=20 
      src="indexImage.files/top_cart.gif" 
      width=76 border=0></A> <A onfocus=this.blur() 
      href="register/checkMyInfo.jsp"><IMG height=20 
      src="indexImage.files/top_my.gif" 
      width=76 border=0></A> <A onfocus=this.blur() 
      href="tourist/help.jsp"><IMG height=20 
      src="indexImage.files/top_faq.gif" 
      width=76 border=0></A>  <A onfocus=this.blur() 
      href="index.jsp?exit=yes"><IMG height=20 
      src="indexImage.files/top_wh.gif" 
      width=76 border=0></A></DIV></TD></TR>
  <TR>
    <TD bgColor=#ffffff colSpan=7>
      <TABLE height=44 cellSpacing=0 cellPadding=0 width="61%" align=right 
      border=0>
        <TBODY>
        <TR>
          <TD>
            <DIV align=left>订花热线:0532-12345678</DIV></TD></TR>
        <TR>
          <TD>
        <DIV align=left>订花 Q&nbsp;Q:12345678</DIV></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD><IMG height=27 alt="" 
      src="indexImage.files/title_r2_c1.gif" 
      width=38 border=0 name=title_r2_c1></TD>
    <TD><A href="index.jsp"><IMG height=27 alt="" 
      src="indexImage.files/title_r2_c2.gif" 
      width=63 border=0 name=title_r2_c2></A></TD>
    <TD colspan="11"><A href="tourist/produceInfo.jsp"><IMG height=27 
      alt="" src="blessingImage.files/title_r2_c10.gif" width=77 border=0 
      name=title_r2_c10></A><A href="tourist/language.jsp"><IMG height=27 alt="" 
      src="indexImage.files/title_r2_c11.gif" 
      width=80 border=0 name=title_r2_c11></A><A href="tourist/flowersLanguage.jsp"><IMG height=27 alt="" 
      src="indexImage.files/title_r2_c12.gif" 
      width=72 border=0 name=title_r2_c12></A><IMG height=27 alt="" 
      src="indexImage.files/title_r2_c13.gif" 
      width=482 border=0 name=title_r2_c13></TD>
</TR></TBODY></TABLE>
<TABLE height=138 cellSpacing=0 cellPadding=0 width=760 align=center 
bgColor=#ffffff border=0>
  <TBODY>
  <TR>
    <TD>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="812" height="222">
        <param name="movie" value="heart.swf">
        <param name="quality" value="high">
        <embed src="heart.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="812" height="222"></embed>
      </object></TD>
  </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=812 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top borderColor=#eaeaea width=170 bgColor=#eaeaea>
      <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD height=3></TD></TR></TBODY></TABLE>
      <SCRIPT language=JavaScript>
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

  function checkuu()
{
    if(checkspace(document.userlogin.username.value)) {
	document.userlogin.username.focus();
    alert("用户名不能为空!");
	return false;
  }
    if(checkspace(document.userlogin.userpassword.value)) {
	document.userlogin.userpassword.focus();
    alert("密码不能为空!");
	return false;
  }
	
  }
</SCRIPT>

      <TABLE cellSpacing=0 cellPadding=0 width=156 align=center border=0>
        <TBODY>
        <TR>
          <TD colSpan=3></TD></TR>
        <TR>
          <TD bgColor=#9b8840 colSpan=3></TD></TR>
        <TR>
          <TD width=1 bgColor=#9b8840></TD>
          <TD bgColor=#ffffff>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
            border=0>
              <TBODY>
              <TR>
                <TD 
                background="indexImage.files/bj_x.gif" 
                height=1></TD></TR>
              <TR>
                <TD height=22>
                  <TABLE height=20 cellSpacing=0 cellPadding=0 width=154>
                    <TBODY>
                    <TR>
                      <TD width=5>&nbsp;</TD>
                      <TD>
                        <DIV 
              align=center></DIV>&nbsp;会员注册</TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD 
                background="indexImage.files/bj_x.gif" 
                height=1></TD></TR>
              <TR>
                <TD height=41>
                  <DIV align=center>
                  <TABLE cellSpacing=1 cellPadding=1 width="95%" align=center 
                  border=0>
                    <FORM action="register/checklogin.jsp" method="get">
                    <TBODY>
                    <TR>
                      <TD align=middle height=22><FONT 
                        color=#999999>您好,购买鲜花请先登录</FONT></TD></TR>
                    <TR>
                      <TD align=middle>用户名: <INPUT 
                        style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; BORDER-LEFT: #ffffff 1px groove; COLOR: #333333; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #ffcc66" 
                        maxLength=20 size=10 name=usersName> </TD></TR>
                    <TR>
                      <TD align=middle>密 码: <INPUT 
                        style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; BORDER-LEFT: #ffffff 1px groove; COLOR: #333333; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #ffcc66" 
                        type=password maxLength=20 size=10 name=usersPass> 
                      </TD></TR>
                    <TR>
                      <TD align=middle height=38><INPUT onfocus=this.blur() 
                        type=image height=19 width=45 
                        src="indexImage.files/login_bt_login.gif" 
                        border=0 name=imageField> <A 
                        href="register/register.jsp"><IMG height=19 
                        src="indexImage.files/login_bt_zc.gif" 
                        width=45 border=0></A>              </TD>
                    </TR>
                    </FORM></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></TD>
          <TD width=1 bgColor=#9b8840></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=1 cellPadding=0 width=156 align=center border=0>
        <TBODY>
        <TR>
          <TD bgColor=#ffcc00 height=5></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD height=5></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=156 align=center border=0>
        <TBODY>
        <TR>
          <TD bgColor=#558d40 colSpan=3 height=1></TD></TR>
        <TR>
          <TD width=1 bgColor=#99cc33></TD>
          <TD bgColor=#ffffff>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD 
                background="indexImage.files/bj_x.gif" 
                height=1></TD></TR>
              <TR>
                <TD height=14>
                  <TABLE height=20 cellSpacing=0 cellPadding=0 width=154 
                  bgColor=#99d767>
                    <TBODY>
                    <TR>
                      <TD width=5>&nbsp;</TD>
                      <TD bgColor=#99d767>
                        <DIV align=center></DIV><IMG height=27 
                        src="indexImage.files/flower_list_title.gif" 
                        width=85></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD 
                background="indexImage.files/bj_x.gif" 
                height=1></TD></TR>
              <TR>
                <TD>
                  <TABLE cellSpacing=0 cellPadding=0 width="95%" align=center 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD height=6></TD></TR>
                    <TR>
                      <TD align=middle height=20>
                        <DIV align=center></DIV>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle colSpan=2 height=22><FONT 
                              color=#ff6600>&nbsp;&nbsp;&nbsp;<A 
                              href="http://www.qdhua.com/class.asp?lx=big&amp;anid=20"><B><FONT 
                              color=#ff6600>鲜花</FONT></B></A></FONT></TD></TR>
                          <TR>
                            <TD align=right width="49%" height=22><a 
                              href='tourist/love.jsp?sortName=&#28010;&#28459;&#29233;&#24773;'
                              target=_self>浪漫爱情</A></TD>
                            <TD align=left width="51%" height=22><FONT 
                              color=#ff6600>|</FONT>&nbsp;<a 
                              href='tourist/love.jsp?sortName=&#29983;&#26085;&#24555;&#20048;'
                              target=_self>生日快乐</A></TD>
                          </TR>
                          <TR>
                            <TD align=right width="49%" height=22><a 
                              href='tourist/love.jsp?sortName=&#31069;&#31119;&#29992;&#33457;'
                              target=_self>祝福用花</A></TD>
                            <TD align=left width="51%" height=22><FONT 
                              color=#ff6600>|</FONT>&nbsp;<a 
                              href='tourist/love.jsp?sortName=&#24944;&#38382;&#25506;&#26395;'
                              target=_self>慰问探望</A></TD>
                                  </TR>
                          <TR>
                            <TD align=right width="49%" height=22><a 
                              href='tourist/love.jsp?sortName=&#33268;&#35874;&#33268;&#27465;'
                              target=_self>致谢致歉</A></TD>
                            <TD align=left width="51%" height=22><FONT 
                              color=#ff6600>|</FONT>&nbsp;<a 
                              href='tourist/love.jsp?sortName=&#23478;&#23621;&#29983;&#27963;'
                              target=_self>家居生活</A></TD>
                                  </TR>
                          <TR>
                            <TD align=right width="49%" height=22><a 
                              href='tourist/love.jsp?sortName=&#21696;&#24605;&#24576;&#24565;'
                              target=_self>哀思怀念</A></TD>
                            <TD align=left width="51%" height=22><FONT 
                              color=#ff6600>|</FONT>&nbsp;<a 
                              href='tourist/love.jsp?sortName=&#23130;&#31036;&#24198;&#20856;'
                              target=_self>婚礼庆典</A></TD>
                                  </TR>
                          <TR>
                            <TD align=right width="49%" height=22><a 
                              href='tourist/love.jsp?sortName=&#21830;&#19994;&#33457;&#31726;'
                              target=_self>商业花篮</A></TD>
                            <TD align=left width="51%" height=22><FONT 
                              color=#ff6600>|</FONT>&nbsp;<a 
                              href='tourist/love.jsp?sortName=&#20250;&#35758;&#40092;&#33457;'
                              target=_self>会议鲜花</A></TD>
                                  </TR>
                          <TR>
                            <TD colSpan=2 height=1></TD></TR></TBODY></TABLE>
                        <DIV></DIV>
                        <DIV></DIV>
                        <DIV></DIV>
                        <DIV></DIV>
                        </TD></TR>
                    <TR>
                      <TD></TD></TR>
                    <TR>
                      <TD height=1></TD></TR>
                    <TR>
                      <TD height=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD width=1 bgColor=#99cc33></TD></TR></TBODY></TABLE>
      <TABLE height=10 cellSpacing=0 cellPadding=0 width=156 align=center 
      border=0>
        <TBODY>
        <TR>
          <TD width=1 bgColor=#00cc66></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=1 cellPadding=0 width=156 align=center border=0>
        <TBODY>
        <TR>
          <TD height=5></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=156 align=center border=0>
        <TBODY>
        <TR>
          <TD colSpan=3></TD></TR>
        <TR>
          <TD bgColor=#9b8840 colSpan=3></TD></TR>
        <TR>
          <TD width=1 bgColor=#9b8840></TD>
          <TD bgColor=#ffffff>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
            border=0>
              <TBODY>
              <TR>
                <TD 
                background="indexImage.files/bj_x.gif" 
                height=1></TD></TR>
              <TR>
                <TD height=22>
                  <TABLE height=20 cellSpacing=0 cellPadding=0 width=154 
                  bgColor=#d1c58f>
                    <TBODY>
                    <TR>
                      <TD width=5>&nbsp;</TD>
                      <TD>
                        <DIV 
                align=center>按照价格(会员价)分类</DIV></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD height=1></TD></TR>
              <TR>
                <TD height=75>
                  <DIV align=center>
                  <TABLE cellSpacing=0 cellPadding=0 width="90%" border=0>
                    <TBODY>
                    <TR>
                      <TD bgColor=#99cc33>
                        <TABLE height=70 cellSpacing=1 cellPadding=0 
                        width="100%" border=0>
                          <TBODY>
                          <TR bgColor=#ffffff>
                            <TD>
                              <DIV align=center><a 
                              href='tourist/prices.jsp?goodsPrice=0-100'
                              target=_self>100元以内</A></DIV></TD>
                            <TD>
                              <DIV align=center><a 
                              href='tourist/prices.jsp?goodsPrice=100-200'
                              target=_self>100-200元</A></DIV></TD></TR>
                          <TR bgColor=#ffffff>
                            <TD>
                              <DIV align=center><a 
                              href='tourist/prices.jsp?goodsPrice=200-300'
                              target=_self>200-300元</A></DIV></TD>
                            <TD>
                              <DIV align=center><a 
                              href='tourist/prices.jsp?goodsPrice=300-500'
                              target=_self>300-500元</A></DIV></TD></TR>
                          <TR bgColor=#ffffff>
                            <TD>
                              <DIV align=center><a 
                              href='tourist/prices.jsp?goodsPrice=500-800'
                              target=_self>500-800元</A></DIV></TD>
                            <TD>
                              <DIV align=center><a 
                              href='tourist/prices.jsp?goodsPrice=800-10000'
                             target=_self>800元以上</A></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></TD>

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/sheziqiong/article/details/130913618