Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

´«ÖDz¥¿Íjavaѧϰ Servlet¼àÌýÆ÷listener

½ñÌìÎÒѧϰÁËjavaweb µÄ¼àÌýÆ÷µÄ֪ʶ£¬ÊÇ·ëÀÏʦ½²µÄ¿Î£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
 
Servlet¼àÌýÆ÷listener£º
Ò»¡¢         ´´½¨£¨servletcontext£©ÉÏÏÂÎļàÌý£º
a)       ¶¨ÒåÒ»¸öÀ࣬ʵÏÖServletContextListener½Ó¿Ú£¬ÔÚweb.xmlÀïÃæ×¢²á¼àÌý£¬
b)      ×¢²áºÍµ÷ÓÃÓÉ·þÎñÆ÷Íê³É£ºcontextInitialized(ServletContextEvent sce)£º·þÎñÆ÷Æô¶¯Ê±´´½¨servletcontext¶ÔÏóʱ×Ô¶¯µ÷Óã¬contextDestroyed(ServletContextEvent sce)£ºservletcontextÏûÍöʱµ÷Óõķ½·¨£¬
¶þ¡¢         ´´½¨£¨httpsession£©¼àÌý£º
a)        ´´½¨Ò»¸öÀ࣬ʵÏÖHttpSessionListener½Ó¿Ú£¬×¢²á¼àÌý£º
b)      sessionCreated(HttpSessionEvent se)·½·¨£ºsession´´½¨Ê±µ÷ÓÃ
c)       sessionDestroyed(HttpSessionEvent se)£ºsessionÏú»Ùʱµ÷Óã¬
d)      ÀûÓÃHttpSessionEvent»ñÈ¡sessionµÄÐÅÏ¢£º
e)      
Èý¡¢         ´´½¨£¨httpservletrequest£©¼àÌý£º
a)       ʵÏÖServletRequestListener½Ó¿Ú£¬
b)      requestDestroyed(ServletRequestEvent sre)£ºrequestÏú»Ùʱµ÷ÓÃ
c)       requestInitialized(ServletRequestEvent sre)£ºrequest´´½¨Ê±µ÷ÓÃ
ËÄ¡¢         Óò¶ÔÏóÖÐÊôÐÔ±ä¸üµÄ¼àÌýÆ÷£º¼àÌýÊôÐÔµÄÔö¼Ó£¬É¾³ý£¬Ìæ»»
a)       ÕâÈý¸ö¼àÌýÆ÷½Ó¿Ú·Ö±ðÊÇ:             ServletContextAttributeListener, HttpSessionAttributeListener ºÍServletRequestAttributeListener£¬
b)      ´´½¨Ò»¸öÀàʵÏÖÒÔÉÏijһ¸ö½Ó¿Ú£¬×¢²á¼àÌýÆ÷
c)       ÔÚÒ³ÃæÔö¼ÓÊôÐÔ£¬
d)      ʹÓüàÌýÆ÷²ÎÊýServletRequestAttributeEvent srae)£¬¿ÉÒÔ»ñÈ¡¶ÔÏóµÄnameºÍvalues£»
e)       Ìæ»»£º


Ïà¹ØÎĵµ£º

Java²ÎÊý´«µÝ(¾­µä,·ÇÔ­´´)

1. ¼òµ¥ÀàÐÍÊÇ°´Öµ´«µÝµÄ
¡¡¡¡Java ·½·¨µÄ²ÎÊýÊǼòµ¥ÀàÐ͵Äʱºò£¬ÊÇ°´Öµ´«µÝµÄ (pass by value)¡£ÕâÒ»µãÎÒÃÇ¿ÉÒÔͨ¹ýÒ»¸ö¼òµ¥µÄÀý×ÓÀ´ËµÃ÷£º
/* Àý 1 */
/**
* @(#) Test.java
* @author fancy
*/
public class Test {
   public static void test(boolean test) {
    &nb ......

Rails¡¢Ruby¡¢JAVAÇ°¾°±È½Ï

        ÔÚÂÛ̳Àï¿´ÁËdaquan198163ËùдµÄ¡¶³õѧRORµÄÒÉ»ó¡·ÕâƪÎÄÕ£¬robbinÔڻظ´ÖиøÁËÏêϸµÄ½â´ð£¬¿ÉÊÇ¿´Íê½â´ðÖ®ºó£¬ÎÒÒ²²úÉúÁËһЩÒÉ»ó£¬ÔÚ´ËÏëÎÊÎÊ¡£
        ÔÚrobbinËù¸ø³öµÄ½â´ðµ±ÖУ¬¸ü¶àµÄÊDzûÊörailsµÄºÃ´¦£¬È»¶ø´ó¼Ò¶¼ÖªµÀ£¬railsÖ»Ê ......

[ת]Java WebÓ¦ÓõÄPolicy°²È«ÅäÖÃÖµµÃÉî˼

ÐÅÏ¢À´Ô´£ºÐ°¶ñ°Ë½øÖÆÐÅÏ¢°²È«ÍŶӣ¨www.eviloctal.com£©
Author:kj021320
תÔØÇë×¢Ãû³ö´¦¡£
JavaÓ¦ÓóÌÐò»·¾³µÄ°²È«²ßÂÔ£¬Ïêϸ˵Ã÷Á˶ÔÓÚ²»Í¬µÄ´úÂëËùÓµÓеIJ»Í¬×ÊÔ´µÄÐí¿É£¬ËüÓÉÒ»¸öPolicy¶ÔÏóÀ´±í´ï¡£
ΪÁËÈÃapplet£¨»òÕßÔËÐÐÔÚSecurityManagerϵÄÒ»¸öÓ¦ÓóÌÐò£©Äܹ»Ö´ÐÐÊܱ£»¤µÄÐÐΪ£¬ÀýÈç¶ÁдÎļþ£¬applet£¨»òJav ......

´«ÖDz¥¿Íjavaѧϰ jdbc³õ²½

ÎÒ½ñÌìѧϰÁËÓÃjdbcÁ¬½ÓÊý¾Ý¿âµÄ֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
1.Êý¾Ý¿âµÄurl  jdbc:mysql://loaclhost:3306/test
 jdbc:±íʾÁ¬½ÓÊý¾Ý¿âʹÓõÄÊÇjdbcЭÒé
 mysql£º±íʾÁ¬½ÓÊý¾Ý¿âµÄ×ÓЭÒ飬²»Í¬µÄÊý¾Ý¿âʹÓõÄЭÒé²» Ò»Ñù
 localhost£ºÊý¾Ý¿â·þÎñÆ÷ËùÔÚµÄipµØÖ·
 3306 £ºÊ¹ÓõĶ˿ںÅ
 tes ......

´«ÖDz¥¿Íjavaѧϰ jdbcÁ¬½Ó³Ø

ÎÒ½ñÌìѧϰÁËÁ¬½Ó³Ø£¬ÊÇ·ëÍþÀÏʦ½²µÄ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
Êý¾Ý¿âÁ¬½Ó³Ø:
Ϊ½â¾ö´«Í³¿ª·¢ÖеÄÊý¾Ý¿âÁ¬½ÓÎÊÌ⣬¿ÉÒÔ²ÉÓÃÊý¾Ý¿âÁ¬½Ó³Ø¼¼Êõ¡£
Êý¾Ý¿âÁ¬½Ó³ØµÄ»ù±¾Ë¼Ïë¾ÍÊÇΪÊý¾Ý¿âÁ¬½Ó½¨Á¢Ò»¸ö“»º³å³Ø”¡£Ô¤ÏÈÔÚ»º³å³ØÖзÅÈëÒ»¶¨ÊýÁ¿µÄÁ¬½Ó£¬µ±ÐèÒª½¨Á¢Êý¾Ý¿âÁ¬½Óʱ£¬Ö»Ðè´Ó“»º³å³Ø”ÖÐÈ¡³öÒ»¸ö£¬Ê¹Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ