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

Java BeanÔ­ÀíÓëÓ¦ÓÃ

   ¡¡¡¡1¡¢Ê²Ã´ÊÇJavaBean£¿  
   
  ¡¡¡¡JavaBeanÊÇÃèÊöJavaµÄÈí¼þ×é¼þÄ£ÐÍ£¬ÓеãÀàËÆÓÚMicrosoftµÄCOM×é¼þ¸ÅÄî¡£ÔÚJavaÄ£ÐÍÖУ¬Í¨¹ýJavaBean¿ÉÒÔÎÞÏÞÀ©³äJava³ÌÐòµÄ¹¦ÄÜ£¬Í¨¹ýJavaBeanµÄ×éºÏ¿ÉÒÔ¿ìËÙµÄÉú³ÉеÄÓ¦ÓóÌÐò¡£¶ÔÓÚ³ÌÐòÔ±À´Ëµ£¬×îºÃµÄÒ»µã¾ÍÊÇJavaBean¿ÉÒÔʵÏÖ´úÂëµÄÖظ´ÀûÓã¬ÁíÍâ¶ÔÓÚ³ÌÐòµÄÒ×ά»¤ÐԵȵÈÒ²ÓкÜÖØ´óµÄÒâÒå¡£  
   
  ¡¡¡¡JavaBeanͨ¹ýJavaÐéÄâ»ú(Java   Virtual   Machine)¿ÉÒԵõ½ÕýÈ·µÄÖ´ÐУ¬ÔËÐÐJavaBean×îСµÄÐèÇóÊÇJDK1.1»òÕßÒÔÉϵİ汾¡£  
   
  ¡¡¡¡JavaBean´«Í³µÄÓ¦ÓÃÔÚÓÚ¿ÉÊÓ»¯µÄÁìÓò£¬ÈçAWTϵÄÓ¦Óá£×Ô´ÓJspµ®Éúºó£¬JavaBean¸ü¶àµÄÓ¦ÓÃÔÚÁË·Ç¿ÉÊÓ»¯ÁìÓò£¬ÔÚ·þÎñÆ÷¶ËÓ¦Ó÷½Ãæ±íÏÖ³öÀ´ÁËÔ½À´Ô½Ç¿µÄÉúÃüÁ¦¡£ÔÚÕâÀïÎÒÃÇÖ÷ÒªÌÖÂÛµÄÊÇ·Ç¿ÉÊÓ»¯µÄJavaBean£¬¿ÉÊÓ»¯µÄJavaBeanÔÚÊÐÃæÉÏÓкܶàJavaÊé¼®¶¼ÓÐÏêϸµÄ²ûÊö£¬ÔÚÕâÀï¾Í²»×÷ΪÖصãÁË¡£  
   
  ¡¡¡¡2¡¢·Ç¿ÉÊÓ»¯µÄJavaBean  
   
  ¡¡¡¡·Ç¿ÉÊÓ»¯µÄJavaBean£¬¹ËÃû˼Òå¾ÍÊÇûÓÐGUI½çÃæµÄJavaBean¡£ÔÚJsp³ÌÐòÖг£ÓÃÀ´·â×°ÊÂÎñÂß¼­¡¢Êý¾Ý¿â²Ù×÷µÈµÈ£¬¿ÉÒԺܺõØʵÏÖÒµÎñÂß¼­ºÍǰ̨³ÌÐò(ÈçjspÎļþ)µÄ·ÖÀ룬ʹµÃϵͳ¾ßÓиüºÃµÄ½¡×³ÐÔºÍÁé»îÐÔ¡£  
   
  ¡¡¡¡Ò»¸ö¼òµ¥µÄÀý×Ó£¬±ÈÈç˵һ¸ö¹ºÎï³µ³ÌÐò£¬ÒªÊµÏÖ¹ºÎï³µÖÐÌí¼ÓÒ»¼þÉÌÆ·ÕâÑùµÄ¹¦ÄÜ£¬¾Í¿ÉÒÔдһ¸ö¹ºÎï³µ²Ù×÷µÄJavaBean£¬½¨Á¢Ò»¸öpublicµÄAddItem³ÉÔ±·½·¨£¬Ç°Ì¨JspÎļþÀïÃæÖ±½Óµ÷ÓÃÕâ¸ö·½·¨À´ÊµÏÖ¡£Èç¹ûºóÀ´ÓÖ¿¼ÂÇÌí¼ÓÉÌÆ·µÄʱºòÐèÒªÅжϿâ´æÊÇ·ñÓлõÎûÓлõÎï²»µÃ¹ºÂò£¬ÔÚÕâ¸öʱºòÎÒÃǾͿÉÒÔÖ±½ÓÐÞ¸ÄJavaBeanµÄAddItem·½·¨£¬¼ÓÈë´¦ÀíÓï¾äÀ´ÊµÏÖ£¬ÕâÑù¾ÍÍêÈ«²»ÓÃÐÞ¸Äǰ̨jsp³ÌÐòÁË¡£  
   
  ¡¡¡¡µ±È»£¬Ò²¿ÉÒÔ°ÑÕâЩ´¦Àí²Ù×÷ÍêȫдÔÚjsp³ÌÐòÖУ¬²»¹ýÕâÑùµÄjspÒ³Ãæ¿ÉÄܾÍÓгɰÙÉÏǧÐУ¬¹â¿´´úÂë¾ÍÊÇÒ»¸öÍ·ÌÛµÄÊÂÇ飬¸ü²»ÓÃ˵ÐÞ¸ÄÁË¡£Èç¹ûÄúʹÓùýasp¿ª·¢¹ý³ÌÐòµÄ»°£¬ÏàÐŶÔÕâ¾ÍÉîÓÐÌå»á?   äʵʹÓ肁SP+COM×é¼þÍêÈ«¿ÉÒÔʵÏÖͬjsp+javabeanͬÑùµÄ¼Ü¹¹£¬µ«²»ÖªµÀijÖÖÔ­ÒòÍøÉϳ£¼ûµÄ¶¼ÊÇÈ«²¿Ð´ÔÚaspÒ³ÃæÖУ¬ËùÒÔʹµÃά»¤Ð޸ĵȼ«Îª²»·½±ã£¬µ±È»ÕâÊÇÌâÍâ»°ÁË)¡£Óɴ˿ɼû£¬Í¨¹ýJavaBean¿ÉÒԺܺõØʵÏÖÂß¼­µÄ·â×°¡¢³ÌÐòµÄÒ×ÓÚά»¤µÈµÈ¡£  
   
  ¡¡¡¡Èç¹ûÄúʹÓÃJsp¿ª·¢³ÌÐò£¬Ò»¸öº


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

ʹÓà Java Native Interface µÄ×î¼Ñʵ¼ù

 Java™ ±¾»ú½Ó¿Ú£¨Java Native Interface£¬JNI£©ÊÇÒ»¸ö±ê×¼µÄ Java API£¬ËüÖ§³Ö½« Java ´úÂëÓëʹÓÃÆäËû±à³ÌÓïÑÔ±àдµÄ´úÂëÏ༯³É¡£Èç¹ûÄúÏ£ÍûÀûÓÃÒÑÓеĴúÂë×ÊÔ´£¬ÄÇô¿ÉÒÔʹÓà JNI ×÷ΪÄú¹¤¾ß°üÖеĹؼü×é¼þ —— ±ÈÈçÔÚÃæÏò·þÎñ¼Ü¹¹£¨SOA£©ºÍ»ùÓÚÔƵÄϵͳÖС£µ«ÊÇ£¬Èç¹ûÔÚʹÓÃʱδעÒâijЩÊÂÏÔò ......

Effective Java¶ÁÊé±Ê¼Ç

package chape8;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* µÚ°ËÕ ͨÓóÌÐòÉè¼Æ
* µÚ45Ìõ£º ½«¾Ö²¿±äÁ¿µÄ×÷ÓÃÓò¼õСµ½×îС
*   ½«¾Ö²¿±äÁ¿µÄ×÷ÓÃÓò×îС»¯¡£¿ÉÒÔÔöÇ¿´úÂëµÄ¿É¶ÁºÍ¿Éά»¤ÐÔ£¬²¢½µµÍ³ö´íµÄ¿ÉÄÜÐÔ
*   Ҫʹ×÷ÓÃÓò×îС£¬×îÓÐÁ ......

java filterÓ÷¨´óÈ«

¹Ø¼ü×Ö: filter
    ¹ýÂËÆ÷FilterÒ²¾ßÓÐÉúÃüÖÜÆÚ£ºinit()->doFilter()->destroy()£¬Óɲ¿ÊðÎļþÖеÄfilterÔªËØÇý¶¯¡£ÔÚservlet2.4ÖУ¬¹ýÂËÆ÷ͬÑù¿ÉÒÔÓÃÓÚÇëÇó·ÖÅÉÆ÷£¬µ«ÐëÔÚweb.xmlÖÐÉùÃ÷£¬<dispatcher>INCLUDE»òFORWARD»òREQUEST»òERROR</dispatcher>¸ÃÔªËØλÓÚfilter-mappingÖС£
Ò»¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ