java,document,xml½âÊÍ
1.½âÊÍ
ÒòΪjspÓõ½ÁËSiteDataÀ࣬¶øSiteData¼Ì³ÐBasePageÀ࣬
ËùÒÔBasePage¹¹Ô캯Êý
BasePage¹¹Ô캯Êý
initializeByCityCodeº¯Êýmain
keyµÄÖµmain.UpImages
vµÄÖµmain.UpImages
2.Ö´ÐÐÍê BasePage.java
ÖеÄinitCommon()ºó£¬
Ìøµ½SiteData.java ÖÐµÄ process();·½·¨£¬
public SiteData(HttpServletRequest request,
ServletContext context, HttpServletResponse response,
JspWriter out)
{
super(request, context, response, out);
process();//¡¾×¢Òâ´Ë·½·¨±»×ÓÀàoverrieds ¡¿
}
3. process();´¦ÀíÍê±Ïºó£¬×ªµ½AjaxSiteData.javaÖÐ
public AjaxSiteData(HttpServletRequest request,
ServletContext context, HttpServletResponse response,
JspWriter out)
{
super(request, context, response, out);
normalhttp = false;
}
Ö´ÐÐÍênormalhttp = false;Óï¾äºó£¬Ö´ÐÐÖØÔØ·½·¨process()£¬
4.Ìøתµ½sitedata.jspÒ³Ãæ
//×¢ÒâÖ´ÐÐÇåÀí·½·¨£¬clearXmlʱ£¬S_METUX
synchronized("S_METUX")
{
xmlMap.clear();
}
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
ÔÚ·Ö²¼Ê½·þÎñ¿ò¼ÜÖУ¬Ò»¸ö×î»ù´¡µÄÎÊÌâ¾ÍÊÇÔ¶³Ì·þÎñÊÇÔõôͨѶµÄ£¬ÔÚJavaÁìÓòÖÐÓкܶà¿ÉʵÏÖÔ¶³ÌͨѶµÄ¼¼Êõ£¬ÀýÈ磺RMI¡¢MINA¡¢ESB¡¢ Burlap¡¢Hessian¡¢SOAP¡¢EJBºÍJMS µÈ£¬ÕâЩÃû´ÊÖ®¼äµ½µ×ÊÇЩʲô¹ØϵÄØ£¬ËüÃDZ³ºóµ½µ×ÊÇ»ùÓÚʲôÔÀíʵÏÖµÄÄØ£¬Á˽âÕâЩÊÇʵÏÖ·Ö²¼Ê½·þÎñ¿ò¼ÜµÄ»ù´¡ÖªÊ¶£¬¶øÈç¹û ......
ÖйúÊÇÒ»¸öº¬ÐîµÄÃñ×壬´¦¶ÔÏóÒ»°ã¶¼µÃͨ¹ýÒ»¸ö½éÉÜÈË¡£
ÕâÊÇÒ»±¾²ûÊö΢¹ÛÉè¼ÆµÄÊ飬¶ø²»ÊDzûÊöºê¹ÛÉè¼ÆµÄÊé¡£
¡¶JavaÓëģʽ¡·Ê×ÏȲûÊöÁË´úÂëµÄÉè¼ÆÔÔò£¬ÓÖÃèÊöÁËÔõÑùÀ´´´½¨Ò»¸öÀà»ò¶ÔÏ󣬽ô½ÓןæËß´ó¼ÒÔõÑùÀ´×éÖ¯ÕâЩÀàºÍ¶ÔÏóÀ´ÊµÏÖ¹¦ÄÜ¡£ËüÊÇÉè¼Æģʽ£¬¶ø²»ÊǼܹ¹Ä£Ê½¡£
OO
ÃæÏò¶ÔÏó±à³Ì£¬ÊµÖÊÉÏÊÇÃæÏò³éÏó±à³Ì£¬¼´ ......
http://xxw8393.blog.163.com/blog/static/37256834200993051226320/
java¶Ôì¶ÎÄ×ֵıàÂëÊÇÒÔ unicodeΪ»ù´¡£¬Òò´Ë£¬ÈôÊÇÒÔZipInputStream¼°ZipOutputStreamÀ´´¦ÀíѹËõ¼°½âѹËõµÄ¹¤×÷£¬Åöµ½ÖÐÎĵµÃû»ò·¾¶£¬Äǵ±È»ÊÇÒÔunicodeÀ´´¦ÀíÂÞ£¡µ«ÊÇ£¬ÏÖÔÚÊÐÃæÉϵÄѹËõ¼°½âѹËõÈíÌ壬ÀýÈçwinzip£¬È´ÊDz»Ö§Ô®unicodeµÄ£¬Ò»Åöµ½µµÃûÒ ......