javaÎÄÕÂ struts2
Action×¢½âÅäÖÃ
ʹÓ÷½Ê½ÈçÏ£º
Java´úÂë
@ParentPackage(value="struts-default")
@Namespace(value="/test")
@Result(name="success",value="/userSuc.jsp")
@Results({
@Result(name="success",value="/userSuc.jsp",type=org.apache.struts2.dispatcher.ServletRedirectResult.class),
@Result(name="input",value="/main.jsp",type=org.apache.struts2.dispatcher.ServletRedirectResult.class)
})
@ParentPackage(value="struts-default")
@Namespace(value="/test")
@Result(name="success",value="/userSuc.jsp")
@Results({
@Result(name="success",value="/userSuc.jsp",type=org.apache.struts2.dispatcher.ServletRedirectResult.class),
@Result(name="input",value="/main.jsp",type=org.apache.struts2.dispatcher.ServletRedirectResult.class)
})
ÔÚʹÓÃÕâЩע½âµÄʱºò£¬»¹ÐèÒª½øÐжîÍâµÄһЩÅäÖá£ÔÚweb.xmlµÄfilterÅäÖÃÖУ¬ÐèÒªÖ¸¶¨ÄÄЩpackageÊÇʹÓÃÁË×¢½âµÄ¡£ÅäÖÃÈçÏÂËùʾ£¬ÆäÖвÎÊýÃû±ØÐëΪ“actionPackages”£¬²ÎÊýµÄÖµ¾ÍÊÇpackageµÄÃû³ÆÁÐ±í¡£
Xml´úÂë
<filter>
<filter-name>struts</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-v
Ïà¹ØÎĵµ£º
2009Äê10ÔÂ25ÈÕ£¬µÃÒ»Êéµê200ÔªÂòÁËËı¾Êéj2se»ù´¡½Ì³Ì£¬j2eeÓ¦Óÿª·¢Ïê½â£¬javaÏîÄ¿¿ª·¢È«³Ìʵ¼£¬java web¿ª·¢ËÙѧ±¦µäÊ鿪ʼ
2010Äê2ÔÂ3ÈÕ£¬µÚÒ»Ì×»ùÓÚú¿ó°²È«¹ÜÀíµÄÈí¼þÄ£Ðͼ°Æ䲿·Ö´úÂë³ÉÐÍ
Èý¸öÔ£¬ÕâÊÇÒ»³¡Ø¬ÃΣ¬²»¹ýÕâÈý¸öÔ£¬ÓÖÊÇÒ»ÖÖ¾ªÏ²ºÍ¿ìÀÖ
´ÓÊý¾ÝÀàÐÍ£¬Óï·¨½á¹¹£¬jdk ¹ýÑ»·£¬´³Êý×飬¼¯ºÏ£¬µü´ú£¬¶ÓÁУ ......
¶ÔÏó³Ö¾Ã»¯£¬Ò²¾ÍÊÇ¿ÉÒÔ°ÑÕâ¸ö¶ÔÏóÓÀÔ¶µÄ±£´æÆðÀ´£¬ÕâÀïµÄ±£´æ²»½öÊǶÔÏó±¾Éí£¬»¹°üÀ¨ËûµÄÊôÐÔºÍËùÒÀÀµµÄÆäËûÀࡣͨ³££¬¶ÔÏó¿ÉÒԳ־û¯µ½Îļþ»òÕßÊÇÊý¾Ý¿âÖС£ÎÒÕâÀïÖ»½éÉÜÈçºÎ½«¶ÔÏó´æ´¢µ½Êý¾Ý¿âÖС£Ç¡ÇÉOracleÊý¾Ý¿âΪÎÒÃÇÌṩÁËÕâÑùµÄ·½±ã¡£
ÔÚOracleÖУ¬ÓÐÒ»ÖÖblogµÄ×Ö¶ÎÀàÐÍ£¬ËüÊÇÓÃÀ´´æ´¢´óÁ¿µÄ¶ ......
transientÕâ¸ö¹Ø¼ü×Ö²¢²»³£¼û£¬Ö÷ÒªÓ¦ÓÃÔÚjavaµÄÐòÁл¯·½Ãæ¡£ÕâÀïÎÒÔÙ¶à˵£¬×ªÒ»ÆªÀÏÍâµÄÎÄÕ£¬ºÜÉú¶¯£¬ÐÀÉÍ°É
Be Careful With Transient Data
Java's serialization provides an elegant, and easy to use mechanism for making an object's state persistent. While controlling object serialization, we mig ......
ÔÚ³ÌÐòÖУ¬Îı¾Îļþ¾³£ÓÃÀ´´æ´¢±ê×¼µÄASCIIÂëÎı¾£¬±ÈÈçÓ¢ÎÄ¡¢¼Ó¼õ³Ë³ýµÈºÅÕâЩÔËËã·ûºÅ¡£Îı¾ÎļþÒ²¿ÉÄÜÓÃÓڴ洢һЩÆäËû·ÇASCII×Ö·û£¬Èç»ùÓÚ
GBKµÄ¼òÌåÖÐÎÄ£¬»ùÓÚBIG5µÄ·±ÌåÖÐÎĵȵȡ£ÔÚ´æ´¢ÕâЩ×Ö·ûʱÐèÒªÕýÈ·Ö¸¶¨ÎļþµÄ±àÂë¸ñʽ£»¶øÔÚ¶ÁÈ¡ÕâЩÎı¾Îļþʱ£¬ÓÐʱºò¾ÍÐèÒª×Ô¶¯Åж¨ÎļþµÄ±àÂë
¸ñʽ¡£
°´ÕÕ¸ø¶¨µÄ×Ö·û¼¯´ ......