Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

the org.apache.log4j.PatternLayout java doc


A flexible layout configurable with pattern string.
The goal of this class is to format

a LoggingEvent

and return the results as a String. The results depend on the conversion
pattern
.
The conversion pattern is closely related to the conversion pattern of the
printf function in C ......

[ת]´óÐÍJava WebϵͳѡÐÍÎÊÌâ̽ÌÖ

Ô­ÎÄÁ´½Ó£ºhttp://www.infoq.com/cn/news/2007/09/java_web_architecture_turnning
×÷Õß ÌïÀÖ ·¢²¼ÓÚ 2007Äê9ÔÂ17ÈÕ ÉÏÎç9ʱ24·Ö
һλIDÊÇjackson1225µÄÍøÓÑÔÚJavaEyeѯÎÊÁËÒ»¸ö´óÐÍWebϵͳµÄ¼Ü¹¹ºÍ²¿ÊðÑ¡ÐÍÎÊÌ⣬ϣÍûÄÜÌá¸ßÏÖÓеĻùÓÚJavaµÄWebÓ¦ÓõķþÎñÄÜÁ¦¡£ÓÉÓڼܹ¹Ä£Ê½ºÍ²¿Êðµ÷ÓÅÒ»Ö±ÊÇJavaÉçÇøµÄÈÈÃÅ»°Ì⣬Õâ¸öÎÊ ......

JavaÖеÄÄÚ²¿ÀàºÍÄäÃûÀà

ÌáÆðJavaÄÚ²¿ÀࣨInner Class£©¿ÉÄܺܶàÈ˲»Ì«ÊìϤ£¬Êµ¼ÊÉÏÀàËÆµÄ¸ÅÄîÔÚC++ÀïÒ²ÓУ¬ÄǾÍÊÇǶÌ×ÀࣨNested Class£©£¬¹ØÓÚÕâÁ½ÕßµÄÇø±ðÓëÁªÏµ£¬ÔÚÏÂÎÄÖлáÓжԱȡ£ÄÚ²¿Àà´Ó±íÃæÉÏ¿´£¬¾ÍÊÇÔÚÀàÖÐÓÖ¶¨ÒåÁËÒ»¸öÀࣨÏÂÎĻῴµ½£¬ÄÚ²¿Àà¿ÉÒÔÔÚºÜ¶àµØ·½¶¨Ò壩£¬¶øÊµ¼ÊÉϲ¢Ã»ÓÐÄÇô¼òµ¥£¬Õ§¿´ÉÏÈ¥ÄÚ²¿ÀàËÆºõÓÐЩ¶àÓ࣬ËüµÄÓô¦¶ÔÓÚ³õ ......

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µÄÔöÇ¿¹¦ÄÜ£¬ÆÕͨ³ÌÐòÔ±Ò²Äܹ»×öµÃµ½¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ