JAVAÖÐDWR¿ª·¢ÏîĿʵս¾Ñé
×Ô¼ºÔÚ¹«Ë¾ÍøÕ¾¿ª·¢×ÜÓÃDWR¿ª·¢µÄÒ»¸ö¼òµ¥ÁÄÌì
±¾ÈËÒ²ÊÇÔÚÍøÕ¾¿ª·¢µØͼʱÓе½ÁËÕâ¸ö¼¼Êõ£¬¸ÕѧϰDWR°ë¸öÔÂ
¾Í°ÑËæÊÖдµÄÒ»¸ö¼òµ¥ÁÄÌìÀ´¸ø´ó¼Ò¹²Ïí£¬Çдèһϡ£
ÓÉÓÚ¿¼Âǵ½Ä³Ð©¾Ö²¿ÔÒò£¬Ö»·¢±íÁËһЩÖØÒª¼¼Êõ·½ÃæµÄ×ÊÁÏ£¬Ã»ÓаÑÈ«²¿¶«Î÷¹²Ïí¡£Çë¸öÈËÌåÁ¡£
ÓÉÓÚDWR2.0ÓиöBug £¬ÎÒÓõÄDWR1.0£¬µ«ÊÇ£¬Ëü±ØÐëÓÃJDK1.4
dwr.xmlÎļþ
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN" "http://www.getahead.ltd.uk/dwr/dwr10.dtd">
<dwr>
<init></init>
<allow>
<create creator="new" javascript="CityChatsend" scope="session">
<param name="class" value="com.aaa.CharChat.DWR.DWRCityChar_send"/>
<include method="Chat_send"/>
</create>
<create creator="new" javascript="CityChatRead" scope="session">
<param name="class" value="com.aaa.CharChat.DWR.DWRCityChar_Read"/>
<include method="ChatRead"/>
</create>
<create creator="new" javascript="CityChatInit" scope="application">
<param name="class" value="com.aaa.CharChat.DWR.DWRCityChar_Init"/>
<include method="getNew_Old"/>
<include method="setNew_Old"/>
</create>
</allow>
</dwr>
DWRCityChar_send JAVAÎļþ
package com.aaa.CharChat.DWR;
import java.sql.*;
import java.util.*;
import com.db.DatabaseConnection;
import com.aaa.CharChat.initSQL.CityChart_InitSQL;
import java.util.Date;
import java.text.SimpleDateFormat;
/**
*Title : ÷ÈÁ¦³ÇÊÐÁÄÌì±£´æ³õʼ±äÁ¿
*Author : JAVA^_^èÉÁú---ËïµÂ»ª
*Project: Êý×Ö³ÇÊÐ
*Date : 2006-09-9
**/
public class DWRCityChar_Init
{
pr
Ïà¹ØÎĵµ£º
ÓÐЩʱºò,ҪдһЩ³ÌÐò,ÔÚ JAVA ÀïÃæºÃÄÑʵÏÖ, µ«Èç¹ûʹÓÃÆäËü±à³ÌÓïÑÔÈ´ÓֱȽÏÈÝÒ×ʱ,ÎÒÃDz»·Áͨ¹ý JNI À´Èò»Í¬ÓïÑԵijÌÐò¹²Í¬Íê³É.
JNI µÄ½Ì³Ì, ÍøÉÏ C µÄ±È½Ï¶à,Java Ò²ÌṩÁË javah.exe Ϊ C ÓïÑ﵀ JNI ³ÌÐòÉú³ÉÍ·Îļþ, Èç¹ûÄãÊÇÒ»¸ö Delphi ±à³ÌÔ±, ÄÜ·ñÈà JAVA Óë Delphi ³ÌÐò½»»¥ÄØ? ´ð°¸Êǿ϶¨µÄ,½ñÌìÎÒÃǾÍÀ´ ......
1.½Ó¿ÚµÄ¶¨Ò壺
interface ½Ó¿ÚÃû
{ ½Ó¿ÚÌ壻 }
×¢Ò⣺½Ó¿ÚÌåÖÐÖ»ÄÜ°üº¬³£Á¿¶¨ÒåºÍ·½·¨¶¨ÒåÁ ......
javaµÄ·¶ÐÍ»úÖÆ¿´ÆðÀ´ÓеãÏñC++µÄÄ£°æ£¬µ«Ïà±È½ÏC++µÄÄ£°æÀ࣬javaÖеķ¶ÐÍûÓйؼü×Ötemplate£¬²¢ÇÒÓÐ×Ų»Í¬µÄʵÏÖ»úÖÆ£¨±¾ÖÊÇø±ð£©¡£
·¶ÐÍÀà
ÏÈ¿´Ò»¸ö·¶ÐÍÀàµÄÀý×Ó£º
public class Demo1<T> {
private T value;
public Demo1(T value) {
&n ......
×î½ü³ÉÁ¢ÁËÒ»¸öJAVA Ⱥ Ïë¸ú´ó¼ÒÒ»¿é½»Á÷ 41912406 £» ¸Ð¾õºÃ¾Ãû¿´¹ýJAVAÁË £¬¶¼ÓÐЩÉúÊèÁË¡£ÏÖÔÚÔÚÒ»¼Ò»Æ½ðͶ×ʹ«Ë¾¹¤×÷£¬Ëä˵¹¤×÷»·¾³»¹ÐУ¬µ«ÄÚÐÄÀïºÃÏñ²¢²»Ï²»¶Õâ¸ö£¬ÒÔºó»¹ÊÇÕÒ¸öÈí¼þ¹«Ë¾¸ÉΪºÃ¡£ÔÚÕâ¸öÐÐÒµÄܶÔÊÀ½ç¾¼ÃÁËÁ˽âºÜ¶à£¬ÎÒÏëÕâ¶ÔÎÒÒÔºó»áÓаïÖúµÄ£¬ÏÈÔÚÕâ¸É×Å£¬³¤µã֪ʶÓë¾ÑéÒ²²»´í¡£ ......
̸̸Java¼Ì³ÐÖеÄÖØÔØ£¬¸²¸ÇºÍÒþ²Ø
ºÃ¾Ã²»Ð´²©¿ÍÁË£¬¾àÀëÉÏһƪÒѾ¹ýÁËÁ½Äê¶àÁË¡£ÕâÁ½ÄêÔÚ¸ÉÂï,×ÜÖ®Ò»ÄêÄѾ¡£¡
Ç°Ò»¶Îʱ¼äæÁËÁ½¸öÔ£¬Ã¦×ÅÑо¿ºÍ×öһЩSSH¼Ü¹¹µÄ¶«Î÷£¬Á½¸öÔÂÏÂÀ´£¬ÊÕ»ñÆķᣬ×î½üÏÐÏÂÀ´ÁË£¬ÓÚÊǾÍÍ´¿ìµÄ¿ªÊ¼ÍæÓÎÏ·£¬µ«ÊDz»ÖªÔõôµØ£¬ÔõôÍ涼ûÒâ˼£¬ÓÚÊǾö¶¨¿ªÊ¼ÔٺúÃÑо¿Ñо¿Java°É¡£ÓÚÊÇ´ó¸Å·ÁË· ......