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

´«ÖDz¥¿Íjavaѧϰ struts¸ß¼¶ÌØÐÔ

ÎÒ½ñÌìѧϰÁËstrutsµÄһЩÌØÓеŦÄÜ£º
strutsµÄͬ²½ÁîÅÆ»úÖÆ£ºÔÚstrutsÖпØÖÆ±íµ¥µÄÖظ´Ìá½»
 
ÔÚActionµÄ·½·¨ÀïÃ棺
this.saveToken(request);
boolean flag=this.isTokenValid(request);
if(flag){
               //Ó¦¸Ã´ÓsessionÖÐÇå³ýsession.removeAttribute(key)
                this.resetToken(request);    
        //²åÈëÊý¾Ý¿âµÄ·½·¨
        customerService.saveCustomer(c);            
        }else{
               System.out.println("±íµ¥Öظ´Ìá½»ÁË");
        }
 
strutsÖеÄת»¯Æ÷£º
 
Struts¿ÉÒÔ×Ô¶¯½øÐÐÀàÐͼäµÄת»»£¬½«StringÀàÐÍת»»ÎªIntegerÀàÐÍ »òjava.sql.Date,
µ«ÊÇÕâÖÖת»»²¢²»ÊÇÍòÄܵģ¬Æ©È磬Ëü¾Í²»Äܽ«Stringת»»Îªjava.util.DateÀàÐÍ£¬
ÎÒÃÇ¿ÉÒÔ×Ô¼º¶¨ÒåÒ»¸öת»»Æ÷ÀàʵÏÖÎÒÃǵÄÐèÇ󣺽«·ûºÏÈÕÆÚÀàÐ͵Ä×Ö·û´®×ª»¯Îªjava.uil.dateÀàÐÍ
×Ô¼ºÐ´Ò»¸ö¹¤¾ßÀࣺ
±ØÐëʵÏÖConverter½Ó¿Ú£¬ÖØд½Ó¿ÚµÄ·½·¨£¬
convert(Class clazz, Object value)  //clazz±íʾҪת»¯ÎªµÄÊý¾ÝÀàÐÍ£¬value±íʾҪת»¯Îª¸ÃÀàÐ͵ÄÖµ£¬´úÂëÈçÏ£ºpublic Object convert(Class clazz, Object value) {
if(value==null){
return null;
}else{
if(clazz == java.util.Date.class) {                 
if(value instanceof String) {
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
 try {
return sdf.parse((String)value);
        } catch (ParseException e) {
               throw new RuntimeException("ÄúÊäÈëµÄÊý¾Ý¸ñʽ²»¶Ô");
         &nb


Ïà¹ØÎĵµ£º

Java»ùÓÚË«ÏòÁ´±íʵÏÖÁбí½á¹¹(Ëã·¨Ô´Âë)

/* ¸ßÊÖÖ®×÷£¬±¾È˽÷ÒÔÊÕ²ØÕßÉí·Ý¹²ÏíÔ´Â룬¹©´ó¼Ò²Î¿¼Ö®! */
/*
 * ÁбíADT½Ó¿Ú
 */
package dsa;
public interface List {
//²éѯÁÐ±íµ±Ç°µÄ¹æÄ£
 public int getSize();
//ÅжÏÁбíÊÇ·ñΪ¿Õ
 public boolean isEmpty();
//·µ»ØµÚÒ»¸öÔªËØ£¨µÄλÖã©
 public Position first();
//· ......

´«ÖDz¥¿Íjavaѧϰ Oracle Êý¾Ý¿âµÄÅäÖü°¹ÜÀí

ÎÒ½ñÌìѧϰÁËOracle Êý¾Ý¿âµÄÅäÖü°¹ÜÀí£º
1           Oracle Êý¾Ý¿âÌåϵ½á¹¹¼ò½é
1.1          ƽ³£Ëù˵µÄ Oracle »ò Oracle Êý¾Ý¿âÖ¸µÄÊÇ Oracle Êý¾Ý¿â¹ÜÀíϵͳ. Oracle Êý¾Ý¿â¹ÜÀíϵͳÊǹÜÀíÊý¾Ý¿â·ÃÎʵļÆËã»úÈí¼ ......

´«ÖDz¥¿Íjavaѧϰ jdbc½ø½×

1.PreparedStatementÓëstatement±È½Ï
 *°²È«ÐÔ£ºPreparedStatement°²È«£¬statement²»°²È«
 *ÅúÁ¿Óï¾äµÄÖ´ÐУºPreparedStatementÖ´ÐÐЧÂʸߣ¬statementÖ´ÐÐЧÂʵͣ¬
 *µ¥ÌõÓï¾äµÄÖ´ÐУºPreparedStatementÖ´ÐÐЧÂʵͣ¬statementÖ´ÐÐЧÂʸߣ¬
**********************************
 ´úÂëµÄ¿É¶ÁÐԺͿÉÎ ......

´«ÖDz¥¿Íjavaѧϰ javaweb¹ýÂËÆ÷£¨filter£©

ÎÒ½ñÌìѧϰÁ˹ýÂËÆ÷£¨filter£©µÄ֪ʶ£¬ÊÇ·ëÀÏʦ½²µÄ¿Î£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
 
Servlet¹ýÂËÆ÷£¨Filter£©£º²»ÏÞ¶¨ÓÚ¾ßÌåµÄЭÒé
Ò»¡¢         ʹÓÃÀ¹½ØÉèÖÃÇëÇó×Ö·û±àÂ룬¹ýÂË·Ç·¨ÎÄ×Ö£¬ÑéÖ¤¿Í»§ÊÇ·ñÒѾ­µÇ½£¬
¶þ¡¢         ±àд¹ ......

´«ÖDz¥¿Íjavaѧϰ struts½ø½×

ÎÒ½ñÌìѧϰÁËstruts¿ò¼ÜµÄ֪ʶ£¬×öÁ˼òµ¥µÄ±Ê¼Ç£º
 
 
Ò»¡¢             Action±êÇ©ÖÐÊôÐÔ £º
l         AttributeµÄÖµ£¬Èç²»ÉèÖã¬Ä¬ÈÏֵΪaction±êÇ©ÖÐnameÊôÐÔµÄÖµ¡£
l    &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ