µ±Ç°Î»ÖãºÊ×Ò³ > »ùÓÚJSP(java)ÂÛ̳µÄÉè¼ÆºÍʵÏÖ
Õª Òª
΢ÐͼÆËã»úµÄÆÕ¼°¼ÓËÙÁ˼ÆËã»úÍøÂçµÄ¹ã·ºÓ¦ÓúͷÉËÙ·¢Õ¹¡£BBSÈ«³ÆÎªBulletin Board System£¨µç×Ó¹«¸æ°å£©»òÕßBulletin Board Service£¨¹«¸æ°å·þÎñ£©¡£ÊÇInternetÉϵÄÒ»ÖÖµç×ÓÐÅÏ¢·þÎñϵͳ¡£ËüÌṩһ¿é¹«¹²µç×Ӱװ壬ÿ¸öÓû§¶¼¿ÉÒÔÔÚÉÏÃæÊéд£¬¿É·¢²¼ÐÅÏ¢»òÌá³ö¿´·¨¡£ËüÊÇÒ»ÖÖ½»»¥ÐÔÇ¿£¬ÄÚÈݷḻ¶ø¼´Ê¹µÄInternetµç×ÓÐÅÏ¢·þÎñϵͳ¡£Óû§ÔÚBBSÕ¾µãÉÏ¿ÉÒÔ»ñµÃ¸÷ÖÖÐÅÏ¢·þÎñ£¬·¢²¼ÐÅÏ¢£¬½øÐÐÌÖÂÛ£¬ÁÄÌìµÈµÈ¡£BBS (Bulletin Board System)ϵͳÒÔ¼ÆËã»úϵͳ¡¢Í¨Ðż¼Êõ¡¢Êý¾Ý¿â¡¢ÍøÂç¼¼ÊõµÈÐÅÏ¢¼¼ÊõΪ֧³Å£¬ÔÚÐÅÏ¢·þÎñÁìÓòÓÐ×ÅÈÕÒæÖØÒªµÄÓ¦Óá£
±¾ÎÄÀûÓÃJSP+CSS£¬HTML+CSS£¬MYSQL£¬JAVABEAN£¬JDBC¼¼ÊõʵÏÖÁËÒ»ÖÖ»ùÓÚB/SģʽµÄÂÛ̳ϵͳ£¬²ûÊöÁËBBSµÄÏà¹ØÀíÂۺͿª·¢·½·¨£¬²¢¸ù¾Ý±¾ÏîÄ¿µÄʵ¼ÊÇé¿ö¹¹ÔìÁËÂÛ̳µÄ»ù±¾¼Ü¹¹¡£
¸ÃÂÛ̳ϵͳÖ÷ÒªÍê³ÉÁË»ùÓÚJSP¼¼ÊõµÄÐÅÏ¢½»Á÷ÂÛ̳µÄÉè¼ÆºÍʵÏÖ£¬Ö÷ҪʵÏÖÁ˿ͻ§¶ËºÍ·þÎñÆ÷¶ËµÄ¶¯Ì¬½»»¥¡£¸Ãϵͳ°üº¬Îå¸öÄ£¿é£º×¢²áµÇ¼ģ¿é£¬ä¯ÀÀÌû×ÓÄ£¿é£¬·¢Ìû»ØÌûÄ£¿é£¬ÂÛ̳¹ÜÀíÄ£¿é£¬Óû§¹ÜÀíÄ£¿é¡£ÂÛÎÄÏêϸµÄÃèÊöÁËÄ£¿éµÄ½á¹¹¡¢¹¦ÄÜÒÔ¼°¾ßÌåµÄÉè¼Æ¹ý³Ì¡£¸ÃÂÛ̳¾²âÊÔ±íÃ÷ÆäÐÔÄÜÎȶ¨£¬¿É¹ã·ºÓ¦ÓÃÓÚ¸÷ÖÖÍøÂçÉÏ£¬×÷ΪÐÅÏ¢½»Á÷ºÍÈËÔ±¹µÍ¨µÄÔ°µØ¡£
¹Ø¼ü´Ê£ºJSP, MYSQL, JAVABEAN,ÂÛ̳ϵͳ¡£
-¢ò-
Designing and Implementation of Forum Based
on JSP Technique
Abstract
The microcomputer popularization has accelerated the computer network widespread application and the rapid development. BBS(Bulletin Board System)system takes information technology like computer system, communication, database, network technology and so on as the strut ,it becomes more and more important in the information service domain.
This article has realized one kind of pattern forum elaborated based on the B/S by using JSP+CSS, HTML+CSS, MYSQL, JAVABEAN, JDBC technology and instructed the BBS related theory and developing methods and unifies this project the actual situation to produce the forum structure overhead construction. The forum(BBS) is mainly completed the design and realizations of information exchanges forum based on the JSP technique. And it main carry out a dynamic state between the customer and the sever. There are five molds piece: register and login the mold piece, scan the article in the mold piece, article releases and restores the mold piece, announce management mold piece, user management mold piece. The thesis has described module structure¡¢function detailed and has designed process concretely. This forum after teacher and schoolmates test indicated its performance is stable, but widely applies to each kind if network the field which links up as the information exchange and the personnel.
Key words: JSP,SQL,JAVABEAN,BBS
-II-
Ŀ ¼
±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©ÈÎÎñÊé ......................................... ´íÎó£¡Î´¶¨ÒåÊéÇ©¡£ Õª Òª .................................................................................................... I ABSTRACT........................................................................................... II µÚ1Õ Ð÷ ÂÛ ................................................................................... 1
1.1¿ÎÌâµÄÌá³ö ..................................................................................................... 1 1.2 ¿ª·¢±³¾° ........................................................................................................ 1 1.3Ñо¿µÄÒâÒå ..................................................................................................... 1 1.4ÂÛÎÄÑо¿Ö÷ÒªÄÚÈÝ ......................................................................................... 2
µÚ2Õ ¹Ø¼ü¼¼Êõ½éÉÜ ....................................................................... 3
2.1 MVC¿ª·¢Ä£Ê½ ............................................................................................. 3 2.2ϵͳ·Ö²ã½á¹¹ÖÐËùÓõ½µÄ¼¼Êõ ..................................................................... 3
2.2.1±íÏÖ²ã ........................................................................................................................ 3 2.2.2¿ØÖƲã ........................................................................................................................ 3 2.2.3ÒµÎñÂß¼²ãºÍÊý¾Ý³Ö¾Ã²ã ........................................................................................ 3
2.3ϵͳÖÐËùÓõ½µÄÆäËü¹Ø¼ü¼¼Êõ ..................................................................... 3
µÚ3Õ ϵͳ·ÖÎö ............................................................................... 5
3.1 ϵͳ¹¦ÄÜ·ÖÎö ............................................................................................... 5
3.1.1Óû§¹¦ÄÜ·ÖÎö ............................................................................................................ 5 3.1.2¹ÜÀíÔ±¹¦ÄÜ·ÖÎö ........................................................................................................ 5
3.2 Ä£¿éÐèÇóÃèÊö ............................................................................................... 5
3.2.1 ×¢²áµÇ¼¹¦ÄÜ ........................................................................................................... 5 3.2.2Óû§ä¯ÀÀ»òÐ޸ĸöÈËÐÅÏ¢¹¦ÄÜ ................................................................................ 6 3.2.3Óû§ä¯ÀÀÌû×Ó¹¦ÄÜ .................................................................................................... 6
-III-
3.2.4Óû§·¢ÐÂÌû×Ó¹¦ÄÜ .................................................................................................... 6 3.2.5Óû§»Ø¸´Ìû×ӵŦÄÜ ................................................................................................ 7 3.2.6¹ÜÀíÔ±¹ÜÀíÓû§¹¦ÄÜ ................................................................................................ 7 3.2.7 ¹ÜÀíÔ±¹ÜÀíÌû×Ó¹¦ÄÜ ............................................................................................... 7
3.3 ϵͳ¿ª·¢»·¾³ ............................................................................................... 8 3.4 ¿ÉÐÐÐÔ·ÖÎö ................................................................................................... 8
3.4.1 ¼¼Êõ¿ÉÐÐÐÔ ............................................................................................................. 8 3.4.2ϵͳ°²È«ÐÔ·ÖÎö ........................................................................................................ 8
µÚ4Õ ϵͳÉè¼Æ ............................................................................... 9
4.1 Éè¼ÆÖ¸µ¼Ë¼ÏëºÍÔÔò ................................................................................... 9
4.1.1 Ö¸µ¼Ë¼Ïë ................................................................................................................. 9 4.1.2 Èí¼þÉè¼ÆÔÔò ......................................................................................................... 9
4.2 ϵͳ¹¦ÄÜ×ÜÌåÉè¼Æ ....................................................................................... 9 4.3 ϵͳ¹¦ÄÜÏêϸÉè¼Æ ...................................................................................... 10
4.3.1×¢²áµÇ¼ģ¿é .......................................................................................................... 10 4.3.2Ö±½ÓµÇ¼ģ¿é .......................................................................................................... 11 4.3.3ä¯ÀÀ»òÐ޸ĸöÈËÐÅϢģ¿é ...................................................................................... 12 4.3.4ä¯ÀÀÌû×ÓÄ£¿é .......................................................................................................... 13 4.3.5Óû§·¢ÌûÄ£¿é .......................................................................................................... 13 4.3.6Óû§»ØÌûÄ£¿é .......................................................................................................... 14 4.3.7¹ÜÀíÔ±¹ÜÀíÂÛ̳ģ¿é .............................................................................................. 15 4.3.8¹Ü·Ա¹ÜÀíÓû§Ä£¿é .............................................................................................. 15
4.4 Êý¾Ý¿âÉè¼Æ .................................................................................................. 16
4.4.1Êý¾Ý¿âÉè¼Æ½éÉÜ ...................................................................................................... 16 4.4.2Êý¾Ý¿â±í¸ñÉè¼Æ ...................................................................................................... 17
4.5 ϵͳ½çÃæÉè¼Æ .............................................................................................. 18
4.5.1Ê×Ò³½çÃæÉè¼Æ .......................................................................................................... 18 4.5.2Óû§×¢²áµÇ¼½çÃæÉè¼Æ .......................................................................................... 19
-IV-
¹²·ÖÏí92ƪÏà¹ØÎĵµ