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

¡¾×ª¡¿DWRÖÐJava·½·¨µÄ²ÎÊý¼°·µ»ØÖµ

1¡¢µ÷ÓÃûÓзµ»ØÖµºÍ²ÎÊýµÄJava·½·¨
1.1¡¢dwr.xmlµÄÅäÖÃ
Xml´úÂë
<dwr>  
  <allow>  
    <create creator="new" javascript="testClass" >  
      <param name="class" value="com.dwr.TestClass" />  
      <include method="testMethod1"/>  
    </create>  
  </allow>  
</dwr>  
<dwr>
<allow>
<create creator="new" javascript="testClass" >
<param name="class" value="com.dwr.TestClass" />
<include method="testMethod1"/>
</create>
</allow>
</dwr>
<allow> ±êÇ©ÖаüÀ¨¿ÉÒÔ±©Â¶¸ø javascript ·ÃÎʵĶ«Î÷¡£
<create> ±êÇ©ÖÐÖ¸¶¨ javascript ÖпÉÒÔ·ÃÎ浀 java À࣬²¢¶¨Òå DWR Ó¦µ±ÈçºÎ»ñµÃÒª½øÐÐÔ¶³ÌµÄÀàµÄʵÀý¡£ creator="new" ÊôÐÔÖ¸¶¨ java ÀàʵÀýµÄÉú³É·½Ê½£¬ new Òâζ×Å DWR Ó¦µ±µ÷ÓÃÀàµÄĬÈϹ¹Ô캯ÊýÀ´»ñµÃʵÀý£¬ÆäËûµÄ»¹ÓÐ spring ·½Ê½£¬Í¨¹ýÓë IOC ÈÝÆ÷ Spring ½øÐм¯³ÉÀ´»ñµÃʵÀýµÈµÈ¡£ javascript=" testClass " ÊôÐÔÖ¸¶¨ javascript ´úÂë·ÃÎʶÔÏóʱʹÓõÄÃû³Æ¡£
<param> ±êÇ©Ö¸¶¨Òª¹«¿ª¸ø javascript µÄ java ÀàÃû¡£
<include> ±êÇ©Ö¸¶¨Òª¹«¿ª¸ø javascript µÄ·½·¨¡£²»Ö¸¶¨µÄ»°¾Í¹«¿ªËùÓз½·¨¡£
<exclude> ±êÇ©Ö¸¶¨Òª·ÀÖ¹±»·ÃÎʵķ½·¨¡£
1.2¡¢javascriptÖе÷ÓÃ
Ê×ÏÈ£¬ÒýÈë javascript ½Å±¾
Js´úÂë
<script src='dwr/interface/ testClass.js'></script>   
<script src='dwr/engine.js'></script>   
<script src='dwr/util.js'></script>  
<script src='dwr/interface/ testClass.js'></script>
<script src='dwr/engine.js'></script>
<script src='dwr/util.js'></script>
ÆäÖÐ TestClass.js ÊÇ dwr ¸ù¾ÝÅäÖÃÎļþ×Ô¶¯Éú³ÉµÄ£¬ engine.js ºÍ util.js ÊÇ dwr ×Ô´øµÄ½Å±¾Îļþ¡£
Æä´Î£¬±àдµ÷Óà java ·½·¨µÄ javascript º¯Êý
Js´úÂë
Function callTestMethod1(){   
&n


Ïà¹ØÎĵµ£º

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

JavaÐéÄâ»ú²ÎÊý XXµÈÏà¹Ø²ÎÊýÓ¦ÓÃ

ͨ³££¬ÎÒÃÇΪÁ˱ÜÃâÄÚ´æÒç³öµÈÎÊÌ⣬ÐèÒªÉèÖû·¾³±äÁ¿
JAVA_OPTS    -Xms256M -Xmx512M µÈ£¬¡¾¶ÔÓÚ·þÎñÆ÷£¬Ò»°ã¶¼ÉèÖóÉÒ»ÑùµÄ¡¿
µ«ÊÇÓеÄʱºò¿ÉÄÜÕâÑùµÄÉèÖû¹»á²»ÐÐ(±ÈÈ磬µ±ServerÓ¦ÓóÌÐò¼ÓÔؽ϶àÀàʱ£¬¼´jvm¼ÓÔØÀàʱ£¬ÓÀ¾ÃÓòÖеĶÔÏó¼±¾çÔö¼Ó£¬´Ó¶øʹjvm²»¶Ïµ÷ÕûÓÀ¾ÃÓò´óС£¬ÎªÁ˱ÜÃâµ÷Õû)£¬Äã¿ÉÒÔʹ ......

JavaÓë.NETµÄ¿ª·¢³É±¾¶Ô±È¼°Ïà¹ØÎÊÌâ

1¡¢Java SE 7ÔâÓö.NET CLR»á·¢Éúʲô£¿
´ÓJava SE 7µÄ¹¦ÄÜÁбíÖпÉÒÔ¿´³ö£¬ËüÏà±ÈÒÔÇ°°æ±¾ÓÐÁ˳¤×ãÌá¸ß¡£ÄÇô£¬ËüÊÇÒ»¸öÓÎÏ·¸Ä±äÕßÂð£¿ÎÒÈÏΪ²»»áÊÇÕâÑù¡£ÔÚ¹ýÈ¥ÊýÄêÖУ¬JVMºÍ.NET CLR¶¼·¢ÉúÁËÖÚ¶à¸Ä½ø£»¹ýÈ¥ÄÇЩֻÓм¼Êõ·Ç³£¸ß³¬µÄ³ÌÐòÔ±²ÅÄÜÍê³ÉµÄÐí¶àÊÂÇ飬ÏÖÔÚ½èÖúÓÚJVMºÍ.NET CLRµÄÔöÇ¿¹¦ÄÜ£¬ÆÕͨ³ÌÐòÔ±Ò²Äܹ»×öµÃµ½¡ ......

java¶¯Ì¬´´½¨Êý×é

  ÓÐJAVAÖУ¬ÓÐʱºòÐèÒª¸ù¾ÝÌõ¼þÀ´Éú³ÉÅú´¦ÀísqlsÓï¾äµÈ£¬ÐèÒª¶¯Ì¬Éú³ÉÊý×é¡£·½·¨£º
List<String> list=new ArrayList<String>();
if(true){
    list.add("insert.....");
    list.add("update....");
}else{
   list.add("insert....");
}
//Õâ¾äÊÇ¹Ø ......

Java Stack Heap

stack ºÍ heep ¶¼ÊÇÄÚ´æµÄÒ»²¿·Ö
stack ¿Õ¼äС£¬ËٶȱȽϿ죬 ÓÃÀ´·Å¶ÔÏóµÄÒýÓÃ
heap ´ó£¬Ò»°ãËùÓд´½¨µÄ¶ÔÏ󶼷ÅÔÚÕâÀï¡£
Õ»(stack):ÊÇÒ»¸öÏȽøºó³öµÄÊý¾Ý½á¹¹,ͨ³£ÓÃÓÚ±£´æ·½·¨(º¯Êý)ÖеIJÎÊý,¾Ö²¿±äÁ¿.
ÔÚjavaÖÐ,ËùÓлù±¾ÀàÐͺÍÒýÓÃÀàÐͶ¼ÔÚÕ»Öд洢.Õ»ÖÐÊý¾ÝµÄÉú´æ¿Õ¼äÒ»°ãÔÚµ±Ç°scopesÄÚ(¾ÍÊÇÓÉ{...}À¨ÆðÀ´µÄÇøÓò) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ