ÇóÒ»¸öjspºÍservletµÄ½â¾ö·½·¨
´ó¼ÒºÃ£¡ÎÒÏÖÔÚÔÚ×öÒ»¸öÍøÉÏÊéµê£¬Óöµ½Ò»Ð©ÎÊÌ⣬ÇóÖúÏ£º
ÒªÇóÊÇÕâÑùµÄ£º
°ÑÒ»±¾ÊéÍϽøÒ»¸ö¹ºÎï³µ£¬¹ºÎï³µ¾Í¶àÁËÕâ±¾Ê飬
´Ó¹ºÎï³µÍϳöÒ»±¾Ê飬Ȼºó¹ºÎï³µ¾ÍÉÙÁËÕâ±¾Ê飻
¸ßÊÖÇëÖ¸µãÏ£¬Ð»Ð»£¡£¡£¨ËÄÜ×ö³ö£¬50·ÖÈ«²¿¸øËû£©
Õâ±¾ÊéÂòÁ˲»Ö¹Ò»±¾ Õ¦Õû
¹ºÎï³µÊÇÒ»¸öMap <BOOK,Integer>
µ±Õâ±¾Êé·Å½ø¹ºÎﳵʱҪÅжÏÊÇ·ñ´æÔÚ£¬´æÔÚÔòÊýÁ¿Ïà¼Ó£¬
²»´æÔÚ¾ÍÖ±½Ó·Å½ø¹ºÎï³µ£¬ÊýÁ¿Ä¬ÈÏΪ1
"°ÑÒ»±¾ÊéÍϽøÒ»¸ö¹ºÎï³µ£¬¹ºÎï³µ¾Í¶àÁËÕâ±¾Ê飬
´Ó¹ºÎï³µÍϳöÒ»±¾Ê飬Ȼºó¹ºÎï³µ¾ÍÉÙÁËÕâ±¾Ê飻"
"ÍÐ"...
ÓüüÖµ¶ÔµÄ¼¯ºÏ
°ÑÄãÓöµ½µÄÎÊÌ⣬ϸ»¯¡£ÔÙÎÊ£¬·º·ºµÄ²»ºÃ»Ø´ð¡£ÔÙ˵£¬»Ø´ðÄãµÄÎÊÌâ²»¹âÊÇΪÁË·ÖÊý£¬¶øÊÇ»¥Ïà°ïÖú¡£
¾µäµÄ¹ºÎï³µµÄÎÊÌ⣬ÓÃHashmap¿ÉÒÔ
½¨ÒéÂ¥Ö÷¿ÉÒԽ豾 TomcatÓëjava web¿ª·¢¼¼ÊõÏê½â
¿´¿´£¬Õâ±¾ÊéÉÏÃæ¾ÙµÄÀý×Ó¾ÍÊÇÒ»¸öÍøÉϹºÎï³µ
²»Ã÷°×ʲôÒâ˼£¬ÊÇÎÊÄÄ·½ÃæµÄ£¬ÊÇÍÏÕâ¸ö¶¯×÷ÔõôÍê³ÉÄØ£¬»¹ÊÇÆäËüµÄÎÊÌ⣿
¾ÍÊǵ±ÄãÍÏÕâ±¾Êéʱ£¬ËüÐ⻶¯£¬Éñ¶¯
µ±ÄãÊó±ê·Åµ½¹ºÎï³µÉÏʱ
¹ºÎï³µ¾Í¶àÁËÕâ±¾Êé
Õâ¸öÒªÓõ½JSµÄ£¬Èç¹ûʹÓÃAjaxµÄ»°¹ºÎï³µ¿ÉÒÔ±£´æÔÚ·þÎñÆ÷ÉÏ£¬²»ÓõĻ°¾ÍÐèÒª±£´æÔÚ±¾µØcookieÉÏÁË£¬²»ÊÇJSPºÍServletÄܽâ¾öµÄ¡£
Ïà¹ØÎÊ´ð£º
ÔÚASPϵıäÁ¿£¬Èç¡°2009-09-09¡°£¬×÷Ϊ²ÎÊý£¬´«ÈëJSPº¯ÊýÄÚ£¬±äΪÂÒÂ룬ÇëÎÊÈçºÎ½â¾ö
asp´«µ½jsp?ûÅö¹ý...up up
¸ñʽ»¯°¡£¡
ASPÖÐÈÕÆÚÊDz»ÊÇÒÔ×Ö·û´®µÄÐÎʽ´«ÈëJSPº¯ÊýÖеģ¿
Èç¹û²»ÊÇ×Ö·û´®µÄ»°£ ......
ÎÒÔÚʹÓÿªÔ´µÄJXL ³öEXCEL±¨±íʱÓöµ½ÕâÑùµÄÎÊÌâ¡£
ÎÒÏë³öµÄÎļþÃû³ÆÊÇÕâÑùµÄ£ºÀý£ºtest_ÀîÇ¿.xls
´úÂëÊÇ ....test_+"UserID"+".xls";
µ«ÊÇ¿ØÖÆ̨ÎÒ¿´µ½µÄÊä³öÃû³ÆЧ¹ûÊÇ£ºtest_µ ......
ÓÃͨ¹ýseverletÅäÖõÄÑé֤ͼÏÔʾ²»³öÀ´£¬¶øÓÃJSP×öµÄͼûÎÊÌ⣬¹À¼ÆÊÇWEB.XMLÅäÖÃÓÐÎÊÌ⣬Çó½Ì¸ßÊÖ£¬
ÊDz»ÊÇseverletÇëÇó±»ÆäËûFilterÀ¹½ØÁË£¿
Éú³ÉÑé֤ͼƬµÄJAVAÀà
Java code
package com.ding ......
ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ã棬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......
SetGetPropertytest.jspÔ´´úÂëÈçÏ£¬Ð»Ð»´ó¼ÒÇ°À´°ï棬ͬʱף´ó¼ÒÖÐÇï¿ìÀÖ
<%@ page c%>
<HTML>
<HEAD>
<TITLE>setProperty¶¯×÷ÓëgetProperty¶¯×÷·¶Àý </TITLE> ......