³É¶¼ÐÅÏ¢¹¤³ÌѧԺ
ѧλÂÛÎÄ
»ùÓÚJSPµÄ¹«½»Ïß·²éѯϵͳµÄÉè¼ÆÓëʵÏÖ
ÂÛÎÄ×÷ÕßÐÕÃû£º ÉêÇëѧλרҵ£º ÉêÇëѧλÀà±ð£º Ö¸µ¼½ÌʦÐÕÃû£¨Ö°³Æ£©£º
xxx
¼ÆËã»ú¿ÆÑ§Óë¼¼Êõ
¹¤Ñ§Ñ§Ê¿ Ò¶½£Ð£¨¸±½ÌÊÚ£©
ÂÛÎÄÌá½»ÈÕÆÚ£º 2011Äê06ÔÂ01ÈÕ
»ùÓÚJSPµÄ¹«½»Ïß·²éѯϵͳµÄÉè¼ÆÓëʵÏÖ
Õª Òª
¹«½»²éѯϵͳÊdzÇÊеÀ·½»Í¨µÄÖØÒª×é³É²¿·Ö£¬ÊdzÇÊз¢Õ¹µÄ±ØÈ»²úÎï¡£³ÇÊй«½»²éѯϵͳµÄ·¢Õ¹´¦ÓÚÒ»¸ö½ÏÂäºóµÄˮƽ£¬ÈËÃÇ¿ÉÒÔ»ñµÃÐÅÏ¢µÄ·½Ê½½ÏÉÙ£¬ÎªÁ˽â¾öÕâÖÖÎÊÌ⣬ÐèÒª´óÁ¦·¢Õ¹ÎÒ¹ú¹«½»Ïß·²éѯϵͳ¡£
±¾ÎÄÊ×ÏȶԹ«½»²éѯϵͳµÄÐèÇó½øÐзÖÎö£¬°üÀ¨¹¦ÄÜÐèÇóºÍ·Ç¹¦ÄÜÐèÇó£»½Ó׎éÉÜÁËϵͳ×ÜÌåÉè¼ÆË¼Â·¡¢·½°¸Ñ¡ÔñºÍÊý¾Ý¿âÉè¼Æ£»ËæºóÏêϸ²ûÊöÁËϵͳÖ÷Òª¹¦ÄÜÄ£¿éµÄʵÏÖ¹ý³Ì£»×îºó¸ø³öϵͳµÄ²âÊÔ·½°¸¡£±¾¹«½»²éѯϵͳÖ÷Òª¾ßÓй«½»²éѯ¡¢Óû§ÁôÑÔ¡¢Óû§¹ÜÀíºÍ³µ´Î¹ÜÀí¡£¹«½»²éѯ°üÀ¨³µ´Î¡¢Õ¾µã¡¢»»³ËµÈ·½°¸µÄ²éѯ£»Óû§ÁôÑÔÖ÷ÒªÊÇÁ˽âÓû§µÄÁôÑÔÐÅÏ¢£¬ÒÔ·½±ã¹ÜÀíÔ±¸ù¾ÝÓû§ÌṩµÄÁôÑÔÐÅÏ¢»òÊÇÌá³öµÄ½¨Òé¶Ôϵͳ½øÐÐÍêÉÆ£»Óû§¹ÜÀíÖ÷ÒªÊÇɾ³ýÓû§ÐÅÏ¢ºÍÐÞ¸ÄÓû§×¢²áµÄ»ù±¾ÐÅÏ¢£»ºǫ́³µ´Î¹ÜÀíÄÜÖ÷ÒªÊÇÌí¼Ó³µ´ÎºÍÕ¾µã¡¢¸üгµ´ÎºÍÕ¾µã¡¢É¾³ý³µ´ÎºÍÕ¾µã¡£±¾ÏµÍ³»ùÓÚB/Sģʽ¿ª·¢£¬²ÉÓÃJSP¼¼Êõ£¬SQL Server 2000¹¹½¨ºǫ́Êý¾Ý¿â¡£
¹Ø¼ü´Ê£ºJSP£»SQL Server 2000£»¹«½»Ïß·²éѯ£»B/S
Based on JSP bus lines inquires the system design and
implementation
Abstract
Bus inquires the system is the urban road traffic, is an important part of the inevitable outcome of the urban development. The development of city bus query system in a relatively backward level, people can get information, the way to solve this problem is less, the need to develop our bus lines inquires the system.
In this paper, first bus query system needs were discussed, including functional requirements and the function demand; Then it introduces the whole system design idea, plan selection and database design; Then illustrates the system the realization process of the main function modules; Finally give system test scheme. This bus inquires the system mainly has the bus inquiry, user message, the user management and back-office train journeys management functions. Bus inquires run number, site, including transfer of query; such scheme User message is mainly collect user information, to facilitate the message provided by user message information or advice on system modified and perfected; User management function mainly delete a user information and modify user registration of the basic information; Backstage main function is to add train management site function, updated train and train and site function, delete trains and stations function. This system based on B/S model development, using the JSP technology, SQL Server 2000 construct backend database.
Key words: JSP; SQL Server 2000; Bus lines inquiry; B/S
Ŀ ¼
ÂÛÎÄ×ÜÒ³Êý£º29Ò³ 1 ÒýÑÔ............................................................................................................................................... 1 1.1 Ñ¡Ìâ±³¾° ............................................................................................................................... 1 1.2 ¹úÄÚÍâÑо¿ÏÖ×´ ................................................................................................................... 1 1.3 ±¾¿ÎÌâÑо¿µÄÒâÒå ............................................................................................................... 1 1.4 ±¾¿ÎÌâµÄÑо¿·½·¨ ............................................................................................................... 2 1.5 ¿ª·¢»·¾³¼°¼¼Êõ¼ò½é ........................................................................................................... 2 1.5.1 JSP»ù´¡ÖªÊ¶ ................................................................................................................. 2 1.5.2 JDBC ............................................................................................................................. 3 1.5.3 Java Servlet .................................................................................................................... 4 1.5.4 ¿ª·¢»·¾³ ....................................................................................................................... 4 1.5.5 Ö÷Òª¹¤×÷ ....................................................................................................................... 4 2 ϵͳÐèÇó·ÖÎö ............................................................................................................................... 4 2.1ϵͳµ÷ÑÐ ................................................................................................................................ 4 2.2ϵͳĿ±ê ................................................................................................................................ 4 2.3 ϵͳµÄ¹¦ÄÜÐèÇó ................................................................................................................... 5 2.3.1 ϵͳÐèÇóÃèÊö ............................................................................................................... 5 2.3.2 ϵͳÊý¾ÝÁ÷ͼ ............................................................................................................... 5 2.3.3 ϵͳµÄ¹¦ÄÜ ................................................................................................................... 5 2.4 ϵͳ·Ç¹¦ÄÜÐèÇó ................................................................................................................... 7 2.4.1 ¾«¶È ............................................................................................................................... 7 2.4.2 °²È«ÐÔÒªÇó ................................................................................................................... 7 2.4.3 ʱ¼äÌØÐÔÒªÇó ............................................................................................................... 7 2.4.4 Áé»îÐÔ ........................................................................................................................... 7 3 ϵͳÉè¼Æ ....................................................................................................................................... 7 3.1 ϵͳ×ÜÌåÉè¼Æ ....................................................................................................................... 7 3.2 ϵͳ·½°¸Ñ¡Ôñ ....................................................................................................................... 8 3.3 ϵͳÊý¾Ý¿âÉè¼Æ ................................................................................................................. 11 3.3.1Êý¾Ý¿âÉè¼Æ .................................................................................................................. 11 3.3.2 ϵͳE-Rͼ ................................................................................................................ 11 3.3.3 Êý¾Ý¿â±í½á¹¹ ............................................................................................................. 12 4 ϵͳʵÏÖ ..................................................................................................................................... 14 4.1 Óû§µÇ¼ģ¿é ..................................................................................................................... 14
4.2 ¸öÈËÐÅÏ¢¹ÜÀíÄ£¿é ............................................................................................................. 16 4.3 ¹«½»ÏµÍ³²éѯģ¿é ............................................................................................................. 16 4.3.1 ³µ´ÎÐÅÏ¢²éѯ ............................................................................................................. 16 4.3.2 Õ¾µãÐÅÏ¢²éѯ ............................................................................................................. 17 4.3.3 ¹«½»»»³Ë·½°¸²éѯ ..................................................................................................... 19 4.4 Õ¾µãÐÅÏ¢¹ÜÀíÄ£¿é ............................................................................................................. 20 4.4.1 ɾ³ýÕ¾µã ..................................................................................................................... 20 4.4.2 Ìí¼ÓÕ¾µã ..................................................................................................................... 21 4.5 ³µ´ÎÐÅÏ¢¹ÜÀíÄ£¿é ............................................................................................................. 21 4.5.1 ɾ³ý³µ´Î ..................................................................................................................... 21 4.5.2 Ìí¼Ó³µ´Î ..................................................................................................................... 22 4.6 ÁôÑÔ°åÄ£¿é ......................................................................................................................... 23 4.6.1 ·¢±íÁôÑÔ ..................................................................................................................... 23 4.6.2 ²é¿´ÁôÑÔ ..................................................................................................................... 23 4.6.3 ɾ³ýÁôÑÔ ..................................................................................................................... 23 5 ϵͳ²âÊÔÓë·ÖÎö ......................................................................................................................... 24 5.1 ²âÊÔ¸ÅÊö ............................................................................................................................. 24 5.1.1 ²âÊÔÄ¿µÄ ..................................................................................................................... 24 5.1.2 ²âÊÔÔÔò ..................................................................................................................... 25 5.1.3 ²âÊÔ·½·¨ ..................................................................................................................... 25 5.2 ²âÊÔÓÃÀý ............................................................................................................................. 25 5.3 ²âÊÔ·ÖÎö ............................................................................................................................. 26 ½á Êø Óï ..................................................................................................................................... 26 ²Î¿¼ÎÄÏ× ......................................................................................................................................... 27 Ö л ......................................................................................................................................... 28 Éù Ã÷ ......................................................................................................................................... 29
Ïà¹ØÍÆ¼ö£º