»ùÓÚJSPµÄÆóÒµÃÅ»§ÍøÕ¾µÄ¿ª·¢ÓëÉè¼Æ˵Ã÷Êé - ͼÎÄ ÏÂÔر¾ÎÄ

ÉÂÎ÷Àí¹¤Ñ§Ôº±ÏÒµÉè¼Æ

ÔÚÌá½»ÁËӦƸÐÅÏ¢ºó£¬»á×Ô¶¯´æÈëºǫ́ÐÅÏ¢Êý¾Ý¿â£¬ÕâÑù·½±ãÁ˹ÜÀíÔ±µÄ²éѯºÍ¹ÜÀí£¬Í¬Ê±Ò²¶ÔӦƸÕßµÄÐÅÏ¢±£´æ£¬¿ÉÒÔÌṩ¸øÆóÒµ²Î¿¼¡£ 5.2.7 ÁôÑÔ°åµÄÉè¼ÆÓëʵÏÖ

ÁôÑÔ°å¶ÔÓÚÆóÒµºÍ¿Í»§À´Ëµ¶¼ÊÇÒ»¸ö¿ÉÊÓ»¯µÄƽ̨£¬ËüÌṩÁËÒ»ÖÖ½ÏΪֱ½ÓµÄ·½Ê½±ãÓÚÆóÒµºÍ¿Í»§µÄ¹µÍ¨£¬Í¬Ê±£¬ËüÒ²½ÓÊÜÀ´×ÔÍøÂçµÄ¸÷·½ÃæµÄÒâ¼û£¬ÕâÑù¿ÉÒÔ¸üºÃ£¬¸ü¹ã·ºµÄÌýÈ¡Òâ¼û£¬´Ó¶ø¸Ä½øÆóÒµ±¾Éí£¬Îª×ÔÉíµÄ·¢Õ¹´´ÔìÓÅÊÆÌõ¼þ¡£

Êý¾ÝµÄ´¦Àí·½Ê½ÓëÇ°ÃæӦƸ¹¦ÄÜÄ£¿éµÄ·½Ê½Ïàͬ¡£

ͼ5.13 ÁôÑÔÒ³Ãæ

²é¿´ÁôÑÔµÄʱºò£¬¿ÉÒԲ鿴µ½ËùÓеÄÁôÑÔ£¬Í¬Ê±Ò²¿ÉÒÔ¿´µ½¹ÜÀíÔ±¶ÔÓÚÁôÑԵĻظ´ÐÅÏ¢¡£ÕâЩ¶¼ÊÇͨ¹ýstrutsµÄ±êǩʵÏֵġ£

µÚ 37 Ò³ ¹² 86 Ò³

ÉÂÎ÷Àí¹¤Ñ§Ôº±ÏÒµÉè¼Æ

ͼ5.14 ²é¿´ÁôÑÔÒ³Ãæ

5.3ϵͳºǫ́Éè¼ÆÓëʵÏÖ

¶ÔÓÚÕû¸öϵͳÀ´Ëµ£¬Ç°Ì¨µÄÖ÷Òª¹¦ÄÜÊÇչʾ£¬¶øºǫ́¾ÍÊÇϵͳµÄ¹ÜÀíºÍÊý¾ÝµÄ¸üеȸüΪÖØÒªµÄ²¿·ÖÁË¡£ÔÚÉè¼ÆµÄʱºò£¬Ç°Ì¨µÄÊý¾ÝÊÇ´Óºǫ́¼ìË÷³öÀ´£¬ÔÚÒ³ÃæÉÏʵʱÏÔʾµÄ£¬ÕâÑù¶ÔÓÚÆóÒµÀ´Ëµ£¬×öµ½ÁËÐÅÏ¢µÄ¼°Ê±¸üкÍÐ޸ģ¬¸üºÃµÄÌåÏÖÁËϵͳµÄÓÅÔ½ÐÔ¡£

ͼ5.15 ϵͳºǫ́¹ÜÀíµÇ½ҳÃæ

ΪÁ˺ǫ́¹ÜÀíµÄ·½±ã²ÉÓÃÁ˼òµ¥µÄ¿ò¼Ü½á¹¹Ä£Ê½£¬Í¬Ê±ÌØÒâ²ÉÓÃÁËÒ»Öֲ˵¥µ¼º½µÄ·½Ê½£¬Õâ¸öÊÇͨ¹ýJavaScriptºÍhtml½áºÏʵÏֵġ£ÔËÓÃJavaScript¸üÁé»îµÄʵÏÖÁ˲˵¥µ¼º½µÄÕ¹¿ªÓëÊÕËõ£¬ÈýçÃæ¿´ÉÏÈ¥¸ü¼ÓÇåÎúÃ÷ÀÊ¡£

ÐèҪעÒâµÄÊÇ£¬ºǫ́µÄʵÏÖ±Èǰ̨Ҫ¿¼ÂǵĶࡣÕâÊ×ÏÈÒ²¹Øϵµ½ºǫ́¾ßÌå³ÌÐòʵÏÖʱºòµÄʵÌåÀàÐͺÍÏà¹Ø·½·¨µÄµ÷Ó㬲¢²»ÊǼò¼òµ¥µ¥µÄµ÷ÓÃÒ»¸öÁ¬½Ó¾Í¿ÉÒԵġ£ÔÚ²¿·Ö²Ëµ¥µÄÁ´½ÓÖУ¬²¢Ã»ÓÐÖ±½ÓÌøתµ½Ïà¹ØµÄÒ³Ã棬¶øÊÇͨ¹ýÏàÓ¦µÄaction·½·¨È¥ÊµÏֵġ£ÕâÑù×ö¿ÉÒÔÔÚÌøתҳÃæµÄʱºò´ÓÊý¾Ý¿âÖ±½Ó¼ìË÷³öһЩÐÅÏ¢£¬¼ò»¯Á˲¿·Ö²Ù×÷¡£Í¬Ê±£¬¶ÔÓÚÖ´ÐÐÒ»¸ö¼òµ¥µÄÁ´½ÓÀ´Ëµ£¬Ö±½ÓÌøתµÄjsp

µÚ 38 Ò³ ¹² 86 Ò³

ÉÂÎ÷Àí¹¤Ñ§Ôº±ÏÒµÉè¼Æ

Ò³Ã沢ûÓÐÈκÎʵ¼ÊµÄÒâÒå¡£

ͼ5.16 µ¼º½²Ëµ¥À¸Éè¼Æ

5.3.1 ϵͳ¹ÜÀíµÄÉè¼ÆÓëʵÏÖ

Õⲿ·ÖµÄ¹ÜÀíÖ÷Òª°üÀ¨¹ÜÀíÔ±µÄ¹ÜÀíºÍϵͳ¹«¸æµÄ¹ÜÀí¡£ (1) ¹ÜÀíÔ±¹ÜÀí

ÕâÀïʵ¼ÊÉÏÉè¼ÆÁËÒ»¸ö

±íµ¥£¬ÓÃÓÚʵÏÖ¹ÜÀíÔ±Ìí¼ÓµÄ¹¦ÄÜ£¬ÉèÖÃÁËÈý¸ötextÎı¾¿ò£¬ÆäÖеÚÒ»¸öÎı¾¿òµÄÄÚÈÝΪtextÐÎʽ£¬ÆäÓàÁ½¸öµÄtypeÉèÖÃΪpasswordÐÎʽ£¬ÒÔ·½±ã¹ÜÀíÔ±µÄÌí¼Ó¡£Æä´ÎÔÚÆäÏ·½£¬»¹ÏÔʾ³öÀ´ÁËĿǰϵͳµÄ¹ÜÀíÔ±µÄÇé¿ö£¬¶ÔÓÚϵͳ¹ÜÀíÔ±À´Ëµ¿ÉÒÔ¶ÔÆäÓû§ºÍ¹ÜÀíÔ±½øÐÐÐ޸ĺÍɾ³ý¡£Èçͼ5.17Ëùʾ¡£

¹ÜÀíÔ±µÄÐÅÏ¢ÒÀ¸½ÓÚAdminʵÌ壬Ëù¶ÔÓ¦µÄÊý¾Ý¿âµÄ±íΪAdmin¡£

ͼ5.17 ¹ÜÀíÔ±¹ÜÀíÒ³Ãæ µÚ 39 Ò³ ¹² 86 Ò³

ÉÂÎ÷Àí¹¤Ñ§Ôº±ÏÒµÉè¼Æ

ºóÃæÉè¼ÆÁËÒ»¸ö¼òµ¥µÄÐÞ¸ÄÃÜÂëµÄ¹¦ÄÜ£¬ÊµÏÖÔ­ÀíͬÌí¼Ó¹ÜÀíÔ±µÄ·½Ê½Ò»Ñù£¬Ôڴ˾Ͳ»¶à׸ÊöÁË¡£

5.3.2 ²úÆ·¹ÜÀíµÄÉè¼ÆÓëʵÏÖ

²úÆ·¹ÜÀíÖ÷Òª·ÖΪÈý¸ö²¿·Ö£¬°üÀ¨²úÆ·Àà±ð£¬²úÆ·¹ÜÀí£¬Ìí¼Ó²úÆ·¡£ÆäÖвúÆ·Àà±ðÊǶԲúÆ·½øÐзÖÀàµÄ¹ÜÀí£¬Ö÷ҪʵÏÖµÄÊÇÌí¼Ó²úÆ··ÖÀàµÄ¹¦ÄÜ£¬ÕâÑùΪÁ˲úÆ·µÄ×ۺϹÜÀíÌṩÁËÓÐЧµÄ·½Ê½£¬¸ü¼Ó±ãÓÚÆóÒµ¶ÔÓÚ×ÔÉí²úÆ·µÄÏêϸ¹ÜÀí¡£

²úÆ·¹ÜÀíµÄʵÏÖ£¬Ö÷ÒªÊÇ·ÖΪÁ½¸ö²¿·Ö£¬²úÆ··ÖÀàµÄʵÏֺ;ßÌå²úÆ·¹ÜÀíµÄʵÏÖ¡£ (1) ²úÆ··ÖÀàµÄʵÏÖ

ÔÚ²úÆ··ÖÀàÖУ¬´´½¨ÁËÁ½¸öµ¥¶ÀµÄʵÌåÀàÐÍBigClassºÍSmallClass£¬·Ö±ðÓÃÓÚ´æ´¢²úÆ·µÄ´óÀàºÍСÀà¡£³ÌÐòÊ×ÏȽøÐÐÁËÏà¹ØµÄ¼ìË÷£¬ÔÚ¼ìË÷³ö½á¹ûºó·ÅÈëµ½Ò»¸ölist·ºÐ͵ļ¯ºÏÖÐÈ¥£¬ÕâÑù×Ó¿ÉÒÔͨ¹ýsession´«Öµµ½Ò³ÃæÉÏ£¬´Ó¶øʵÏÖÒ³ÃæµÄÕý³£ÏÔʾ¡£ÈôÎÞ½á¹û£¬ÔòÏÔʾΪ¿Õ¡£½á¹ûʵÏÖÈçͼ5.18Ëùʾ¡£

ͼ5.18²úÆ··ÖÀà¹ÜÀíÒ³Ãæ

(2) ²úÆ·Ìí¼ÓµÄʵÏÖ

²úÆ·Ìí¼ÓÊDzúÆ·¹ÜÀí²»¿ÉȱÉÙµÄÒ»²¿·Ö¡£Èçͼ5.19Ëùʾ¡£Ìí¼ÓÒ»¸öеIJúÆ·¶ÔÓÚÆóÒµÀ´Ëµ¾Í»áÓÐеÄÒ»¸ö»ú»á£¬ÐµÄÊг¡¾ºÕùÁ¦¡£±¾Éè¼ÆÖÐÌṩÁ˶ԲúÆ·Ìí¼Ó¹¦ÄܵÄʵÏÖ£¬¶ÔÓÚ²úÆ·µÄ»ù±¾ÐÅÏ¢½¨Á¢ÁËʵÌåProduct²¢±£´æ¡£ÕâÑù²úÆ·¾Í¿ÉÒÔÔÚÊ×Ò³ÏÔʾ£¬¸ü¼ÓÌåÏÖÁËÆóÒµÍøÕ¾µÄÓÅÊÆÁ¦Á¿£¬Êý¾Ý¸üм°Ê±Ñ¸ËÙ¡£

µÚ 40 Ò³ ¹² 86 Ò³