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

´«ÖDz¥¿ÍJAVAÅàѵOAÏîÄ¿2010 5 12


´«ÖDz¥¿ÍJAVAÅàѵOAÏîÄ¿2010-5-12
½ñÌì»»Á˸öнÌÊÒ£¬ÖÕÓÚ½áÊøÁËÃÆÈȵĿÕÆøÁË¡£ÒÔÇ°½ÌÊÒ¿Õµ÷´ó´óµÄÓÐÎÊÌ⣬ÏÖÔÚºÃÁË£¬¿ÉÒÔÒ»Ïí¿Õµ÷µÄÁ¹Ë¬£¬Ö»²»ÊÇΨһÃÀÖв»×ãµÄÊÇ£¬¾ÓÈ»ÓõIJ»ÊǸñÁ¦¿Õµ÷¡£ÔÚ¸ñÁ¦¿Õµ÷´ôÁËËÄÄ꣬ËäÈ»ÔÚÄǶùûÓз¢»Ó³öÎÒ¸üºÃµÄˮƽ£¬µ«ÊÇÈ˱Ͼ¹ÊÇÓиÐÇéµÄ£¬ÎÒÒ²ºÜ°®ÄǸö¸ñÁ¦£¬´ó¹«Ë¾£¬´óÆøÆÇ£¬ÌرðÊÇ£¬ÎÒÃǹ«Ë¾µÄ×ܾ­Àí---¶­Ã÷ÖéŮʿ£¬¶þʮһÊÀ¼ÍŮǿÈË¡£
ºÇºÇ£¬Ì¸Ô¶ÁË¡£ÎÒÊÇÒ»¸öÖ´×ŵÄÈË£¬¾ÍÏñÐí¶àÈ˳Ö×ŵÄÑ¡ÔñÒ»Ö±´ôÔÚ¸ñÁ¦Ò»Ñù£¬ÆßÄ꣬ʮÄ꣬¶¼Ã»ÓÐ×ß¡£¶øÊÇÑ¡ÔñÖ´×ŵľÍÁË£¬ÒòΪÄǸöµØ·½²»ÊʺÏÎÒ£¬ÎÒ°®¼ÆËã»ú£¬ÎÒ°®Èí¼þ£¬ÎÒ°®Ò»¸öÃÀºÃµÄδÀ´£¬ÎÒ°®ÎÒ¸¸Ä¸£¬ÎÒ°®ÎÒÅ®ÅóÓÑ£¬ËùÒÔÎÒ²»µÃ²»×ß¡£
ÎÒÏÖÔÚÉÏ¿ÎÎҸоõʱ¼ä²»¹»£¬µ«ÊÇÒ»µ½Òª¼ÌÐøÞÜ×ÅÏÂÈ¥£¬ÎÒ´ø×ÅÏ£ÍûºÍδÀ´À´µÄ±±¾©£¬ÎÒ´øÁËһƨ¹ÉµÄÕ®À´µ½Á˱±¾©£¬ÎÒ´Ó¼¸¸öÅàѵÖÐÐÄ»¨¹âÁËÎÒ¼¸Äê´ò¹¤µÄ»ýÐîշתÀ´µ½ÕâÀÎÒÒѾ­Êä²»ÆðÀ´£¬Ç®Ã»ÓÐÁË¿ÉÒÔÕõ£¬µ«ÊÇÇഺûÓÐÁË£¬È´ÓÀÔ¶»Ø²»À´£¬ÈκÎÒ»¸öÈ˶¼ÌÓÀë²»ÁË¡£
½ñÌìµÄѧϰ£¬ÒòΪǰһÌìûÓм°Ê±½øÐÐÁ·Ï°ËùÒÔ£¬ÌýÆðÀ´ºÜÈÝÒ×£¬µ«ÆðÀ´µÄʱºòÈ´ºÜÄѺǣ¡ÎÒÒ»¶¨Òª¼ÓÓÍ£¬ÔÚ½øÈëÏÂÒ»¸ö½×¶Îʱ£¬²»ÒªÀ­×Ô¼ºµÄʽš£¼ÓÓÍ£¡
¶Ô¹ýÈ¥µÄÎÊÌâµÄ´¦Àí¼°»Ø¹Ë£º
1.Pakeage Auto-import="false" Ä¬ÈÏ.ÒòΪÈç¹û´æÔÚÁ½¸öÀàÃûÒ»ÖÂʱ£¬¾Í²»ÖªµÀµ¼ÈëÄÇÒ»¸ö°ü£¡ËùÒÔΪfalse
2.BeanUtils.
3.ת»»Æ÷ÉèÖÃĬÈÏÖµ
a) ÔÚservlet init()·½·¨ÖÐÖØÐÂ×¢²áת»»Æ÷¡£
b) ÔÚweb.xmlÖÐÅäÖÃservlet.ÉèÖàlock-up-down ´óÓÚactionServletµÄ¸ÃÊôÐÔÖµ¡£ÒòΪÕâÑù¿ÉÒÔÔÚactionServlet¼ÓÔØÖ®ºó£¬ÔÚÖ´ÐиÃServlet¡£
4.¹¤×÷Á÷֪ʶ»Ø´¡£º
i. ¹ÜÀí
1. Æô¶¯Á÷³ÌʵÀý rootTooken.signal() rootTookenÊÇÔõôµÃµ½µÄ¡£
a) pd.createProcessInstance(); pd Ó¦¸ÃÊÇprocessDef initionµÄʵÀý¡£
2. »ñµÃÈÎÎñÁбí
a) jbpmContext.getTaskMsmtSession.findTaskInstance(String)
3. °ìÀíÈÎÎñ
a) ¿ªÊ¼
b) ½áÊø
          
ii.¹ØÁªÊý¾Ý£¬Ê¹ÓÃÁ÷³Ì±äÀí.processInstance.getContextInstance
1.setValriable(key,value);
2.getVariable(key);
3.ʹÓÃʵÌå×÷Ϊ±äÁ¿ÖµÊ±£¬ÒªÇóIDΪLongÐÍ 
ii. Éè¼Æ
1.½Úµã£¬Á÷³Ì
2.ÈÎÎñ·ÖÅä
a) 1.actor-id="#{±äÁ¿}"
b) AssignmentHandler  Õâ¸öÒѾ­Íü¼ÇÁË¡£Ã»ÓÐÓ¡Ïó


Ïà¹ØÎĵµ£º

½«JAVAÖеÄÊý×éת»»³ÉJS µÄÊý×é

JAVA ´úÂëÈçÏ£º
<%
        //    µÃµ½Òª×ª»»µÄÊý×é---µ±È»ÕâÀïÒ²¿ÉÒÔÊÇÆäËûÀàÐ͵ÄÊý×é
        List jsList = (List) request.getAttribute("gczbh"); 
%>
JS  ´úÂëÈçÏ£º
<script type="text/javascrip ......

javaÉè¼Æģʽѧϰ1£­£­Singleton Pattern

javaÉè¼Æģʽѧϰ1£­£­Singleton Pattern
¡¡¡¡Ç°Ð©Ìì°ÚŪjava£¬²Î¿¼Ò»Ð©×ÊÁÏдÁ˸öÊý¾Ý¿âÁ¬½Ó³Ø£¬¶ÔÀïÃæÖ»²úÉúÒ»¸öʵÀýµÄÄÇÖÖ×ö·¨Éî±íÅå·þ£¬½ñÌìÖÐÎçÓÖÌýµ½±ðÈËÔÚ˵Éè¼Æģʽ£¬Êܲ»ÁËÁË£¬¾ÍÉÏÍøDownÁ˵ã×ÊÁÏÀ´¡£
¡¡¡¡Ò»À´¾Í¿´µ½ÁËSingletonģʽ£¬Ò»¿´£¬Ñ½£¬²»¾ÍÊÇÄǸöÁ¬½Ó³ØÀïÓõķ½·¨Ã´?!àÞ£¬Ô­À´Èç´Ë¡£
¡¡¡¡Singleton Ê ......

java±ÊÊÔ1

1. HttpSession session = request.getSession() 
ÓëHttpSession session = request.getSession(true)µÄÇø±ð£¿ 
²Î¿¼´ð°¸£º 
getSession(true)µÄº¯ÊýÔ­ÐÍΪ:£ºHttpSession session = request.getSession (Boolean create) 
Èç¹ûÓÐÓ뵱ǰµÄrequestÏȹØÁªµÄHttpSession,ÄÇô·µ»ØrequestÏà¹ØÁªµÄHttpS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ