»ùÓÚJ2EEµÄÎʾíµ÷²éϵͳµÄ±ÏÒµÉè¼Æ - ͼÎÄ ÏÂÔØ±¾ÎÄ

ÉòÑôÀí¹¤´óѧѧʿѧλÂÛÎÄ

Õª Òª

ÔÚУ԰¡¢ÆóÒµ»ú¹ØÀ´«Í³µÄÎʾíµ÷²é²»½ö·±Ëö¡¢·¢·ÅÎʾíÀ§ÄÑ£¬»ØÊÕÎʾí¸üÊÇÒ»¸öÄѽâ¾öµÄÎÊÌ⣬²¢ÇÒÏ൱µÄ·Ñʱ·ÑÁ¦¡£¶øÍøÂçÎʾíµ÷²éϵͳµÄ³öÏÖ£¬´Ó¸ù±¾ÉϽâ¾öÕâÒ»ÎÊÌ⣬Ó봫ͳÎʾíµ÷²éÏà±ÈÆä¸ü¼Óʡʱ¡¢Ê¡Á¦£¬»ØÊÕÂÊÒ²±È½Ï¸ß£»ÆäÌâĿ֧³Öµ¥Ñ¡Ìâ¡¢¶àÑ¡Ìâ¡¢´øÎı¾ÊäÈëµÄµ¥Ñ¡Ìâ¡¢´øÎı¾ÊäÈëµÄ¶àÑ¡Ìâ¡¢ÎÊ´ðÌ⣻Óû§¿ÉÒÔ¸øÄ³ÎʾíÌí¼ÓͼƬ£»Óû§¿ÉÒÔ¸øÎʾíÉèÖÃÃÜÂ룬IPÏÞÖÆ£¬°üÀ¨ºÚÃûµ¥ºÍ°×Ãûµ¥£¬Óû§Ò²¿ÉÒÔÉèÖÃͬһIPÊÇ·ñ¿ÉÒÔÖØ¸´Ìá½»µÈ·À×÷±×Ñ¡ÏϵͳÌṩ¶Ô¿Í¹ÛÌâµ÷²é½á¹ûµÄÖÇÄÜͳ¼Æ£¬²¢ÓÃͼ±íչʾ³öÀ´£»Õë¶ÔÿһÕÅÎʾíµÄÿһ¸öÌâÄ¿µÄÈÎÒ×Ñ¡ÏÓû§Ò²¿ÉÒÔÉèÖýضϣ¬ÖÕÖ¹µ÷²é£¬Ò²¿ÉÒÔÉèÖÃÌø×ª£¬¼´±»µ÷²éÕßµã»÷ÁËij¸öÑ¡Ïîºó×Ô¶¯Ìø×ªµ½Óë¸ÃÑ¡ÏîÆ¥ÅäµÄºóÐøÌâÄ¿ÉÏ¡£

¹Ø¼ü´Ê£ºJ2EEÌåϵ½á¹¹£»Îʾíµ÷²é£»Éè¼ÆÄ£Ê½£»Í¨Óÿò¼Ü

V

ÉòÑôÀí¹¤´óѧѧʿѧλÂÛÎÄ

Abstract

In the campus, enterprise authority, not only the traditional questionnaire trival, difficulty of a questionnaire, and recycling questionnaire is a difficult problem, and quite laborious. And the emergence of the network questionnaire system, fundamentally solve the problem, compared with the traditional questionnaire survey of its time, manpower, more recovery rate is high; The subject support single, multiple choice of topics, single topic selection with text input, multiple choice and questions and answers with text input; The user can add images to a questionnaire; The user can set the password to questionnaire, IP restrictions, including black and white list, whether the user can also set the same IP can be repeated to submit such as anti-cheating options; System provides the objective in the smarter statistics of survey results and chart display; Each title for each questionnaire as easy option, the user can also set the truncation, terminate the investigation, also can set the jump, the respondents will redirect after click on an option to match with the option of the follow-up questions.

Keywords: J2EE;questionnaire;common framework;survey

VI

ÉòÑôÀí¹¤´óѧѧʿѧλÂÛÎÄ

Ŀ ¼

1 ÒýÑÔ ......................................................................................................................... 1

1.1 ¿ª·¢±³¾° ..................................................................................................... 1 1.2 ¹úÄÚÍâÑо¿ÏÖ×´ ......................................................................................... 1 1.3 ϵͳÉè¼ÆµÄÄ¿±ê ......................................................................................... 1 2 ¿ª·¢»·¾³¼°Ïà¹Ø¼¼ÊõµÄ½éÉÜ ................................................................................. 3

2.1 ¿ª·¢»·¾³ ..................................................................................................... 3 2.2 ¿ª·¢Èí¼þ½éÉÜ ............................................................................................. 3

2.2.1 ¹ØÓÚMyEclipse ................................................................................. 3 2.2.2 ÔËÐл·¾³ ........................................................................................... 4 2.2.3 SQL SERVER ¼ò½é .......................................................................... 4 2.2.4 Tomcat¼ò½é ...................................................................................... 5 2.3 Ïà¹Ø¿ª·¢¼¼Êõ½éÉÜ ..................................................................................... 5

2.3.1 JavaEE¼ò½é ...................................................................................... 5 2.3.2 JSPÓëServlet¼ò½é ........................................................................... 6 2.3.3 JavaScript¼ò½é ................................................................................. 7 2.3.4 Css+Div¼ò½é .................................................................................... 8 2.3.5 B/S½á¹¹ ............................................................................................ 8

3 ϵͳÐèÇó·ÖÎö ....................................................................................................... 10

3.1 ¹¦ÄÜÐèÇó ................................................................................................... 10 3.2 ¹¦ÄÜ·ÖÎö ................................................................................................... 10 3.2 Êý¾Ý¿â·ÖÎö ............................................................................................... 12 4 ϵͳ×ÜÌåÉè¼Æ ....................................................................................................... 13

4.1 ϵͳÖ÷Òª¹¦ÄÜÉè¼Æ ................................................................................... 13 4.2 ¸÷¹¦ÄÜÄ£¿éÉè¼Æ ....................................................................................... 13 4.3 ϵͳ¹¹¼Ü ................................................................................................... 14 4.4 ϵͳ×ÜÌå½á¹¹ ........................................................................................... 14 4.5 Êý¾Ý¿âÉè¼Æ ............................................................................................... 15

4.5.1 Êý¾Ý±íÉè¼Æ ..................................................................................... 15

VII

ÉòÑôÀí¹¤´óѧѧʿѧλÂÛÎÄ

4.5.2 Êý¾Ý¿âÁ¬½Ó·½·¨ ............................................................................. 18

5 ϵͳÏêϸÉè¼ÆÓëʵÏÖ ........................................................................................... 21

5.1 ǰ̨¹¦ÄÜÄ£¿é ........................................................................................... 21 5.2 ºǫ́¹¦ÄÜÄ£¿é ........................................................................................... 23 6 ϵͳ²âÊÔ ............................................................................................................... 28

6.1 ²âÊÔ¸ÅÂÛ ................................................................................................... 28 6.2 ÍøÉÏÎʾíµ÷²éϵͳ²ÉÓõIJâÊÔ·½·¨ ....................................................... 28

6.2.1 ϵͳºǫ́½çÃæ²âÊÔ ......................................................................... 29 6.2.2 ϵͳǰ̨½çÃæ²âÊÔ ......................................................................... 30 6.2.3 ¹¦ÄܲâÊÔ ........................................................................................ 30

7 ½áÂÛ ....................................................................................................................... 31

7.1 ±¾ÏµÍ³µÄÌØµã ........................................................................................... 31 7.2 ±¾ÏµÍ³´æÔڵIJ»×ã ................................................................................... 31 7.3 ÐĵÃÌå»á ................................................................................................... 31 Ö л ........................................................................................................................... 33 ²Î¿¼ÎÄÏ× ..................................................................................................................... 34 ¸½Â¼A Ó¢Îĸ½Â¼ ..................................................................................................... 35 ¸½Â¼B ÖÐÎĸ½Â¼ ..................................................................................................... 39 ¸½Â¼C ³ÌÐò¸½Â¼ ..................................................................................................... 43

VIII