校园二手交易系统的设计与实现本科毕业论文

图15 权限控制效果图

权限控制后台代码:

<%

List list=(List)session.getAttribute(\ Set set =(Set)list.get(1); Iterator it= set.iterator(); while(it.hasNext()){ Funs f=it.next(); %>

d.add(<%=f.getId() %>, <%=f.getFatherId() %>,

'<%=f.getName() %>','<%=f.getConnurl()%> ','','Main');

public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException, ServletException

{ HttpServletRequest request=(HttpServletRequest)arg0; HttpSession session= request.getSession(); List list=(List) session.getAttribute(\ String uri=request.getRequestURI(); if(uri.endsWith(\

if(uri.endsWith(\ith(\(\

arg2.doFilter(arg0, arg1); }else{ if(list==null){ request.setAttribute(\请正常登录系统!\ request.getRequestDispatcher(\ }else{

arg2.doFilter(arg0, arg1); } } }else{ arg2.doFilter(arg0, arg1); }

}

4.2 系统的测试

4.2.1 测试的目的和作用

软件测试的作用在于发现软件的缺陷,从而提高软件质量,测试人员会告诉你他们的主要工作是发现bug。但我们知道测试永远不能发现所有的bug,而且不可能去测试软件质量。

第20页

许多领域内专家也极力主张软件测试的目的主要是在于发现软件错误,希望在软件开发生命周期内尽可能早的发现尽可能多得bug。这种认识源于我们没有办法对软件进行完全测试,即对程序的正确性进行完全证明,但遗憾的是,我们至今还没有使用的技术做到这一点。包括E.W.Dijkstra指出“测试只能证明程序有错, 不能保证程序无错”。所以,人们认为能够发现程序缺陷的测试是成功的测试,测试的根本目的就是为了发现尽可能多地缺陷。然而不幸的是,这种对软件测试过分单一的阐述和解释会带来两个原则性的问题。 4.2.2 测试原则

软件测试从不同的角度出发会派生出两种不同的测试原则,从用户的角度出发,就是希望通过软件测试能充分暴露软件中存在的问题和缺陷,从而考虑是否可以接受该产品,从开发者的角度出发,就是希望测试能表明软件产品不存在错误,已经正确地实现了用户的需求,确立人们对软件质量的信心。

中国软件评测中心的测试原则就是从用户和开发者的角度出发进行软件产品测试的,通过我们的测试,可以为用户提供放心的产品,并对优秀的产品进行认证。 为了达到上述的原则,那么需要注意以下几点:

(1).应当把“尽早和不断的测试”作为开发者的座右铭

(2).程序员应该避免检查自己的程序,测试工作应该由独立的专业的软件测试机构来完成。

(3).设计测试用例时应该考虑到合法的输入和不合法的输入以及各种边界条件,特殊情况下要制造极端状态和意外状态,比如网络异常中断、电源断电等情况。

(4).一定要注意测试中的错误集中发生现象,这和程序员的编程水平和习惯有很大的关系。

(5).对测试错误结果一定要有一个确认的过程,一般有A测试出来的错误,一定要有一个B来确认,严重的错误可以召开评审会进行讨论和分析。

第21页

(6).制定严格的测试计划,并把测试时间安排的尽量宽松,不要希望在极短的时间内完成一个高水平的测试。

(7).回归测试的关联性一定要引起充分的注意,修改一个错误而引起更多的错误出现的现象并不少见。

(8).妥善保存一切测试过程文档,意义是不言而喻的,测试的重现性往往要靠测试文档。 4.2.3 测试方法和步骤

软件测试方法: 第一种方法是黑盒测试,第二种方法是白盒测试 。

软件测试步骤: (1)单元测试(模块测试) (2)子系统测试(3)系统测试(4)验收测试(5)平行运行。

5.总结

经过初期的调研、中期的开发及后期的调试,如今WEB校园二手交易系统终于设计完毕,调试并运行通过了,开发过程本着实用、高效的原则,一切从实际情况出发。

通过本次这次实习设计我感受良深,也从中学到不少在学校在课堂上学不到的东西.通过实次实践我深刻的感觉到软件开发的艰辛及问题解决后的喜悦,它培养我们独立思考问题的能力,同时也增强了我的动手能力,为以后自己在所要从事工作奠定了基础。

通过本次的实践我对软件开发产生了浓厚的兴趣,体会到,在课堂上学习的理论固然重要,但是不去实践就不能完全了解它内涵,要多看有关程序开发及设计方面的书籍,拓宽自己的设计思路,学习别人在开发过程中使用的算法和积累的经验。在软件的开发过程中,一定要目的明确,一步一步的走,做到系统总体结构清晰,变量定义要统一,这一点我感受最深刻,也为之付出了不小的代价,光数据库就结构及其字段定义就随系统更改了数次,浪费好多的时候和心血,看来软件的开发初期问题的定义是十分重要的,一定要结构合理,考虑到系统的完整性。

综观软件开发行业,如今对编程人员相对缺乏,尤其是初级的编程人员,我想通过我们在校学习的相关专业知识以及在实践中积累的些经验,在经过一段时间的磨练,对于开发软件来说不是很难的事,也并非只有专业人员才能开发设计,

我们可以三两个同学组成一个开发小组,开发一些小的应用程序,这个想法是完全可实现的。要想从事软件开发,只学会一两种程序开发工具是不够的,我们还要不断的学习,不断钻研,在软件开发行业上闯出一番事业。

总之学海无涯,我们只有不断的学习,不断的进步,才能在瞬息万变、人才济济的社会竞争中,立于不败之地!

6 致谢

本次毕业设计,我要特别感谢我的指导教师田喜平老师,她给予了我很大帮助,在她的悉心指导下,我逐步完成了本次毕业设计。她认真负责的工作态度,严谨的治学精神和深厚的理论水平都使我收益匪浅,为我以后的学习和工作,增添了一笔宝贵的财富。

最后我还要感谢培养我长大含辛茹苦的父母,谢谢你们!

第22页

参考文献

[1] 陈旭.电子商务基础[M].重庆:重庆大学出版社.

[2] 熊晓旭,丁玉军,张丽梅.浏览器一服务器模式管理信息系统可行性研究[J].应用科技,2000, 27(9)20-22.

[3] Servlet简介.http://www.wztvu.com/ssqs/kjyy/dsxd/200504/803.htm,2006 26(2). [4] JavaServer Pages Technology.http://java.sun.com/products/jsp/,2006 23(2). [5] Apache Tomcat.http://tomcat.apache.org/,2006 10(3). [6] 邓子云,张赐.JSP网络编程[M].北京:电子工业出版社,2003.

[7] 杜欣然.利用JSP技术开发基于Web的人事工资管理系统[D].大连:大连铁道学院,2003. [8] 冯燕奎,赵德奎.JSP实用案例教程[M].北京:清华大学出版社,2003.

[9] 李华飚,李水银,郭英奎.精通Java中间件编程[M].中国水利水电出版社,2003.

[10] 马世军,赵子夫,张浩华,赵坤.创建基于JSP的大学图书馆网络管理系统[J].辽宁工学院学报,2004,6(5):105-106.

第23页

[11] 万振凯、叶华、刘培.网页设计技术实训教程[M].南开大学出版社,2002. [12] 拓文工作室.Java与Beans开发使用手册[M].机械工业出版社,2002.

[13] 沈建男.精通从JavaScript到JSP范例程序设计[M].中国青年出版社,2001.

[14] Kalen Delandy,Inside Microsoft SQL Server 2000[S].USA :Microsoft press,2000.76-98.

The Design and Realization of Campus Network Secondhand Merchandise System Based on Web

ZhouWei

(School of Computer and Information Engineering, Anyang normal university, Henan,

Anyang, 455002)

Abstract:This system is a set of platform software of the campus-wide system secondhand transaction. It adopts the JSP/J2EE technique, and programmed with Java programming language. It also adopts the B/S development mode, which is based on Web and popularize in recent years. It runs in internet ways. Only when the server install this system and the client can visit it, browse and release some secondhand conveniently and speedily when they go on-line. And so it dispenses with such operation as the complicated installing, installment and support in traditional C/S mode. At the same time, it uses the Java language which towards the OOP(object-oriented programming).So the system has the specific property of towarding OOP, irrelevant with the platform ,the Java language’s support to the network programming technique makes the system have high practical value.

The system development is divided into three parts. That is using JavaBeans to process business logic; using JSP+HTML+JavaScript and Servlet to process interface; and visiting the SQL Server 2000 database through JDBC-ODBC Bridge.

Keywords:JSP;JavaBeans;Java;B/S请删除以下内容,O(∩_∩)O谢谢!!!An arbitrary title given to a funerary work from ancient Egypt called pert em hru, the translation of which is \day,\Heliopolis, Thebes, and Sais, differing only inasmuch as they were edited by the colleges of priests founded at these centers. Many papyri of the work have been discovered, and passages from it have been inscribed upon the walls of tombs and pyramids and on sarcophagi and mummy-wrappings. One very complete copy is on display at the Egyptian Museum in Turin, Italy. It is undoubtedly of extremely early date; exactly how early it would be difficult to say, but in the course of centuries it was greatly added to and modified. It contains about 200 chapters, but no complete papyrus has been found. The chapters are quite independent of one another, and were probably all composed at different times. The main subject is the beatification of the dead, who were supposed to recite the chapters in order that they might gain power and enjoy the privileges of the new life. The work abounds in magical references. The whole trend of the Book of the Dead is thaumaturgic, as its purpose is to guard the dead against the dangers they have to face in reaching the other world. As in most mythologies, the dead Egyptian had to encounter malignant spirits and was threatened by many dangers before reaching his haven of rest. He also had to undergo judgment by 第24页

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4