ÄãºÃ£¬»¶Ó­À´µ½¾­¹ÜÖ®¼Ò [µÇ¼] [×¢²á]

ÉèΪÊ×Ò³ | ¾­¹ÜÖ®¼ÒÊ×Ò³ | Êղر¾Õ¾

»ùÓÚWebµÄ¿Î¼þÐÅÏ¢¹ÜÀíϵͳ_¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ

·¢²¼Ê±¼ä£º2015-01-22 À´Ô´£ºÈË´ó¾­¼ÃÂÛ̳
¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ Õª Òª Ä¿Ç°£¬Java 2ƽ̨ÓÐ3¸ö°æ±¾£¬ËüÃÇÊÇÊÊÓÃÓÚСÐÍÉ豸ºÍÖÇÄÜ¿¨µÄJava 2ƽ̨Micro°æ£¨Java 2 Platform Micro Edition£¬J2ME£©¡¢ÊÊÓÃÓÚ×ÀÃæϵͳµÄJava 2ƽ̨±ê×¼°æ£¨Java 2 Platform Standard Edition£¬J2SE£©¡¢ÊÊÓÃÓÚ´´½¨·þÎñÆ÷Ó¦ÓóÌÐòºÍ·þÎñµÄJava 2ƽ̨ÆóÒµ°æ£¨Java 2 Platform Enterprise Edition£¬J2EE£©¡£ J2EEÊÇÒ»ÖÖÀûÓÃJava 2ƽ̨À´¼ò»¯ÆóÒµ½â¾ö·½°¸ÖеÄÓ뿪·¢¡¢²¿ÊðºÍ¹ÜÀíÏà¹ØµÄ¸´ÔÓÎÊÌâµÄÌåϵ½á¹¹¡£J2EE¼¼ÊõÊÇÒ»Ì×ÃæÏòÆóÒµÓ¦ÓõÄÌåϵ½á¹¹£¬ÎÒÃÇ¿ÉÒÔ½«J2EEÀí½âΪJ2SE£¨Java 2 ƽ̨µÄ±ê×¼°æ£©µÄÀ©Õ¹ºÍÑÓÉ죬J2EEµÄ»ù´¡¾ÍÊÇJ2SE£¬J2EE²»½ö¹®¹ÌÁ˱ê×¼°æÖеÄÐí¶àÓŵ㣬ÀýÈç"±àдһ´Î¡¢µ½´¦ÔËÐÐ"µÄÌØÐÔ¡¢·½±ã´æÈ¡Êý¾Ý¿âµÄJDBC API¡¢CORBA¼¼ÊõÒÔ¼°Äܹ»ÔÚInternetÓ¦ÓÃÖб£»¤Êý¾ÝµÄ°²È«Ä£Ê½µÈµÈ£¬Í¬Ê±»¹ÌṩÁË¶Ô EJB£¨Enterprise JavaBeans£©¡¢Java Servlet API¡¢JSP£¨Java Server Pages£©ÒÔ¼°XML¼¼ÊõµÄÈ«ÃæÖ§³Ö¡£Æä×îÖÕÄ¿µÄ¾ÍÊdzÉΪһ¸öÄܹ»Ê¹ÆóÒµ¿ª·¢Õß´ó·ùËõ¶ÌͶ·ÅÊг¡Ê±¼äµÄÌåϵ½á¹¹¡£ J2EEÌåϵ½á¹¹ÌṩÁËÖмä²ã¼¯³É¿ò¼Ü£¬ËüÊÇÓÃÀ´Âú×ãÄÇЩÎÞÐèÌ«¶à·ÑÓöøÓÖÐèÒª¸ß¿ÉÓÃÐÔ¡¢¸ß¿É¿¿ÐÔÒÔ¼°¿ÉÀ©Õ¹ÐÔµÄÓ¦ÓõÄÐèÇó¡£Í¨¹ýÌṩͳһµÄ¿ª·¢Æ½Ì¨£¬¿ÉÒÔʹ¿ª·¢ÕßÔÚʹÓÃJ2EE¿ª·¢¶à²ãÓ¦ÓÃʱ½µµÍ¿ª·¢·ÑÓú͸´ÔÓÐÔ£¬Í¬Ê±Ìṩ¶ÔÏÖÓÐÓ¦ÓóÌÐò¼¯³ÉÇ¿ÓÐÁ¦Ö§³Ö£¬ÍêÈ«Ö§³ÖEnterprise JavaBeans£¬ÓÐÁ¼ºÃµÄÏòµ¼Ö§³Ö´ò°üºÍ²¿ÊðÓ¦Óã¬Ìí¼ÓĿ¼֧³Ö£¬ÔöÇ¿ÁË°²È«»úÖÆ£¬Ìá¸ßÁËÐÔÄÜ¡£ Struts¿ò¼ÜÊÇÒ»Öַdz£ÓÅÐãµÄ¿ò¼Ü£¬ÊÇ»ùÓÚJ2EEµÄMVCÓ¦Óÿò¼Ü,ËäÈ»´ÓÕýʽ·¢²¼µ½ÏÖÔÚÒѾ­ÓÐÎåÄê¶àµÄʱ¼ä£¬Ëæןü¼ÊõµÄÖð²½³ÉÊ죬ËüÒѾ­Ô½À´Ô½¶àµØÔËÓÃÓÚÆóҵƽ̨֮ÉÏ,Ðí¶à´óÐÍÍøÕ¾Òѳɹ¦µØÓ¦ÓÃÁËStruts¿ò¼Ü¡£±¾ÎÄÔÚ×ܽáÁËStruts¿ò¼Ü¼¼Êõ¼°Æ乤×÷Ô­ÀíµÄ»ù´¡ÉÏ£¬½áºÏ¡°»ùÓÚwebµÄ¿Î¼þÐÅÏ¢¹ÜÀíϵͳ¡±Õâ¸öÏîÄ¿£¬ÊµÏÖÁËϵͳ¸÷¸öÄ£¿éµÄ»ù±¾¹¦ÄÜ£¬ÕâΪ½ñºó¸üºÃµÄÓ¦ÓÃStruts¿ò¼ÜÌṩÁ˲ο¼¡£ ±¾ÎĽáºÏʵ¼ÊÏîÄ¿µÄÉè¼ÆÓ뿪·¢¶ÔStruts¿ò¼Ü½øÐÐÑо¿£¬¶ÔStruts¿ò¼Ü¼°Æ乤×÷Ô­Àí½øÐÐÁ˽éÉÜ¡£Í¬Ê±£¬¶Ô¿ª·¢¹ý³ÌÖÐËùÓ¦Óõ½µÄSERVLET£¬JSP£¬JAVAµÈ¼¼Êõ×÷ÁËÏàÓ¦µÄ½éÉÜ£¬¹æ·¶µÄÈí¼þ¿ª·¢Á÷³Ì½éÉÜ£¬ÒÔ¼°Èí¼þ¹¤³Ì»ù±¾Ë¼Ïë¼°¸÷½×¶ÎʵÏÖ¡£ ±¾ÎĹ²·ÖÎå¸ö²¿·Ö²ûÊöÁË»ùÓÚWEBµÄ¿Î¼þÐÅÏ¢¹ÜÀíϵͳµÄ½á¹¹ºÍÉè¼ÆʵÏÖ¹ý³Ì¡£ µÚÒ»²¿·Ö£º½éÉÜÁËJ2EE·¢Õ¹¹ý³ÌÖеÄÁ½´ó½×¶Î£ºModel 1 ÓëModel 2£¬²¢·ÖÎöÁ½ÕßµÄÓÅȱµã£¬¶ÔÁ½Õß½øÐбȽϣ¬Ö¸³öModel2µÄÓÅÔ½ÐÔ¡£´Ó¶ø˵Ã÷ʹÓûùÓÚModel2µÄStruts¿ò¼ÜµÄÓÅÊÆ¡£ µÚ¶þ²¿·Ö£º¶ÔStruts¿ò¼Ü½øÐÐÁ˽éÉÜ£¬²ûÊöÁË¿ò¼ÜµÄ¹¤×÷Ô­Àí£¬²¢·ÖÎöÁËStruts¿ò¼ÜµÄÓÅȱµã¡£ µÚÈý²¿·Ö£º¾­¹ýÈÏÕæµÄµ÷ÑУ¬¶ÔϵͳµÄ¿ª·¢½øÐÐÁËÈ«ÃæµÄÐèÇó·ÖÎö£¬Í¨¹ý¶ÔϵͳµÄÒµÎñÁ÷³Ìͼ£¬ÓÃÀýÄ£ÐÍ£¬Ë³ÐòͼµÄÃèÊöÓ붨Ò壬ȷ¶¨ÁËϵͳµÄ×ÜÌåÁ÷³Ì ¡£ µÚËIJ¿·Ö£ºÍ¨¹ý¡°»ùÓÚWEBµÄ¿Î¼þÐÅÏ¢¹ÜÀíϵͳ¡±ÎªÀý£¬À´ËµÃ÷ÈçºÎÉè¼Æ»ùÓÚStruts¿ò¼ÜµÄWebÓ¦ÓÃ,ÒÔ¼°ÔÚStruts¿ò¼ÜÖÐÓ¦ÓÃ×Ô¶¨Òå±êÇ©µÄ¾ßÌåʵÏÖ¹ý³Ì¡£ µÚÎ岿·Ö£º½éÉÜÁËÔÚÕâ´ÎÏîÄ¿ÖÐÓõ½µÄһЩ¼¼Êõ£¬ÀýÈçStrutsÖÐ×Ô¶¨Òå±êÇ©µÈ¡£ µÚÁù²¿·Ö£º¶Ô±¾´ÎËù×öÏîÄ¿µÄÒ»¸ö×ܽᡣ ¹Ø¼ü´Ê£ºJ2EE, MVC, Struts Abstract At present, the platform of Java 2 have three editions,the first is J2ME-Java 2 Platform Mirco Edition used to the small equiment and integlligent card,the second is J2SE-Java 2 Platform Standard Edition used to desktop system,the third J2EE-Java 2 Platfrom Enterprise Edition is used to create application of sever and service. J2EE is kind of architecturewhich used to simplify the difficult which relevant of development. deployment and manament in enterprise solution. The basement of J2EE is the core of Java platform or the standard edition of Java 2. J2EE not only stabilize lots of excellence in standard edition,for example "write one time ,run everywhere",make the technique of the saving of database include JDBC API¡¢CORBA and so on,as well as the safe mode of protect data in the application in Internet.It also provide the integrated sustainment for EJB£¨Enterprise JavaBeans£©¡¢Java ervlets API¡¢JSP£¨Java Server Pages£©as well as XML.It's ultima thule is become one architecture which can cut shorten the time to plunge into market for developer. J2EE provide the integrated architecture satisfy the application demand which is high usability¡¢high stability as well as expansibility .Through provide the unify platform of exploit,J2EE make the expenditure of exploit application of multilayer as well as provide strength sustainment to application of already exist, integrated sustainment for Enterprise JavaBeans,having the better guide to sustain pack and dispose of application,the sustainment of insert category,strenghren the security,heighten the capability . The frame of Struts is a kind of real fair according to J2EE the MVC application frame, although from release to have already had time that five years have another till now formally, along with should be technical gradually mature, it has already been make use of in the business enterprise terrace more and more on, many large websites have already applied the frame of Struts successfully. This text combine" conference room book system" item in tallying up the Struts frame technique and it work the foundation of the principle, carrying out the basic function of the system each mold piece, this provided the reference for the better application Struts frame of aftertime. This text passes the design and developments of the actual item to carry on the research to the frame of Struts, working to the frame of Struts and it the principle carried on the introduction. At the same time, in the folio hair process the XML, SERVLET, JSP apply to, JAVA etc. technique made the simple introduction, and the software development process of norm introduction, the software engineering basic thought and each stage realizations. Part 1: introduce the two greatest stages within the J2EE development processes respectively: Model 1 with Model 2, and analytical both of merit and shortcoming, carry on the comparison to both, point out Model2 superior sex.Thus explain the usage according to the advantage of the Model2 frame of Struts. Part 2: carry on the introduction to the frame of Struts, elaborate the principle of Struts, and analyzed the merit and shortcoming of the frame of Struts. Part 3: After serious survey£¬making a comprehensive assay of requirement for the system.Confirming the whole flow through describing and defining the flow chart of business,model of case,chart of sequence. Part 4: pass" sourceware managing system based on Web" of the whole project as an example, explain how to design according to the Web application of the frame of Struts,and use user-defined tag-libs. Part 5: In this part introduced In ths project used technology, for example the taglibs and so on. Part 6: For this project to a summarize Keyword: J2EE , MVC, Struts Ä¿ ¼ Õª ÒªI AbstractIII Òý ÑÔ1 µÚ1ÕÂJ2EEÓ¦ÓÃÌåϵ½á¹¹Ïµ½á¹¹4 1.1J2EEÓ¦ÓóÌÐòÌåϵ½á¹¹µÄ·¢Õ¹4 1.1.1JSP Model14 1.1.2JSP Model25 1.1.3JSP Model1 ÓëJSP Model2 µÄ±È½Ï6 1.2Struts¿ò¼ÜµÄ½éÉÜ7 1.2.1Struts½éÉÜ7 1.2.2Struts¹¤×÷Ô­Àí8 1.2.3Struts¿ò¼ÜµÄÓÅȱµã10 µÚ2ÕÂÐèÇó·ÖÎö11 2.1¿ª·¢±³¾°11 2.3 ¿Î¼þÐÅÏ¢¹ÜÀíϵͳÐèÇó·ÖÎö13 2.4 Êý¾Ý¿âÃèÊö14 2.4.1¶ÔSQL ServerµÄ½éÉÜ14 2.4.2±¾ÏµÍ³ËùÉè¼ÆµÄÊý¾Ý½á¹¹ºÍÊý¾ÝÏî18 2.5 ÐèÇó¹æ¸ñ19 2.5.1 ϵͳÌØÐÔ119 2.5.2ϵͳÌØÐÔ220 2.6 ÐÔÄÜÐèÇó21 µÚ3ÕÂϵͳÏêϸÉè¼Æ22 3.1ϵͳ»·¾³22 3.2Ä£¿é»®·Ö22 3.3 ¿Î¼þÐÅÏ¢¹ÜÀíϵͳµÄÉè¼Æ23 µÚ4ÕÂϵͳʵÏÖ25 4.1Óû§µÇ¼25 4.2¹¦ÄÜÄ£¿é28 µÚ5Õ²âÊÔ32 µÚ6ÕÂÏîÄ¿ÖÐÓ¦Óõ½µÄ¼¼Êõ½éÉÜ34 6.1±éÀúÐÅÏ¢£¨Struts Logic±êÇ©£©34 6.2Ð޸ŦÄÜ34 µÚ7ÕÂ×ܽá35 Ö л36 ²Î¿¼ÎÄÏ×37 ÍâÎÄÔ­ÎÄ38 ÍâÎÄ·­Òë46
¾­¹ÜÖ®¼Ò¡°Ñ§µÀ»á¡±Ð¡³ÌÐò
  • ɨÂë¼ÓÈë¡°¿¼ÑÐѧϰ±Ê¼ÇȺ¡±
ÍƼöÔĶÁ
¾­¼ÃѧÏà¹ØÎÄÕÂ
±êÇ©ÔÆ
¾­¹ÜÖ®¼Ò¾«²ÊÎÄÕÂÍƼö