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

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

ÎÒ½ñÌìѧϰÁËstruts¿ò¼ÜµÄ֪ʶ£¬×öÁ˼òµ¥µÄ±Ê¼Ç£º
 
 
Ò»¡¢             Action±êÇ©ÖÐÊôÐÔ £º
l         AttributeµÄÖµ£¬Èç²»ÉèÖã¬Ä¬ÈÏֵΪaction±êÇ©ÖÐnameÊôÐÔµÄÖµ¡£
l         ScopeµÄĬÈÏÖµÊÇsession
¶þ¡¢Struts±êÇ©¿â£ºÖ»ÄÜÔÚstrut»·¾³ÖÐʹÓÃ
dispatcheActionµÄʹÓùæÔò 
   * ¶¨ÒåµÄÀàÒª¼Ì³Ð public class EmpAction extends DispatchAction
   * ¸ÃÀàÖеķ½·¨¶¨Òå¹æÔò  
       * ·½·¨Ãû³Æ×Ô¶¨Òå(ÒªºÍjspÒ³ÃæÖеIJÎÊýµÄÖµÒ»ÖÂ)
          * ·½·¨µÄ²ÎÊý¸öÊý,²ÎÊýÀàÐÍ,²ÎÊý˳ÐòºÍ·½·¨µÄ·µ»ØÀàÐÍÒªÓëactionÖеÄexecute()·½·¨Ò»ÖÂ
         
   * ÔÚjspÒ³ÃæÖеÄʹÓÃ
         ·¾¶ÈçÏÂ
          method=save ²ÎÊýÃû³Æ   method×Ô¶¨Òå  ²ÎÊýÃû³ÆÒªºÍ<action>µÄ parameterÊôÐÔµÄÖµÏàͬ
               ²ÎÊýÖµ     saveÒªºÍEmpActionÖеķ½·¨Ãû³ÆÏàͬ
        action="${pageContext.request.contextPath}/empAction.do?method=save"
   
   * ÔÚStruts-config.xmlÎļþÖеÄÅäÖÃÈçÏÂ
       <!--
                    method=save
                    parameter="method"
                    parameterµÄÖµÊÇÔÚjspÒ³ÃæÖвÎÊýµÄÃû³Æ,
                          &nb


Ïà¹ØÎĵµ£º

JavaÖеÄÊý¾Ý±È½Ï£¨ÔÙ̸==ÓëequalsµÄÇø±ð£©


±¾×÷Æ·²ÉÓÃ֪ʶ¹²ÏíÊðÃû-·ÇÉÌÒµÐÔʹÓÃ-Ïàͬ·½Ê½¹²Ïí 2.5 Öйú´ó½Ðí¿ÉЭÒé½øÐÐÐí¿É¡£
JavaÖеıäÁ¿Óë¶ÔÏóÓÐÇø±ðÂð£¿
Òý×Ó£º±äÁ¿Óë¶ÔÏó
±äÁ¿ÊÇJavaÖÐ×î»ù±¾µÄ´æ´¢µ¥Ôª£¬Îª±äÁ¿¸³Öµ¿ÉÒÔʹÓø³Öµ±í´ïʽ¡£È磺
int i = 10;
¸Ã±í´ïʽµÄº¬ÒåÊǽ«Ò»¸ö×ÖÃæÁ¿£¨literal£©10¸³Öµ¸øÒ»¸öÀàÐÍΪintÐ͵ıäÁ¿£¬±äÁ¿ÃûΪi¡£ÕâÊÇÒ»¸öÎ ......

¶ÁÈ¡formÊý¾Ýʱ£¬java·´ÉäµÄÒ»µãÓ¦ÓÃ

package com.gis.biz;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.servlet.http. ......

javaÇóѧÀú³Ì

´ÓJavaSE µ½JavaEE
ÔÙ´Ócorejava1,corejava11,Java Language Specification, Second(Third) Edition, Think in java£¬Data Structure java depth Adventrue)
תµ½JavaEE(EJB,Spring,Hibernate,Webwork,struts1,strut2,jsp,servlet)
´Ó¿ªÔ´×éÖ¯ÔÙµ½×Ô×éÖ¯£¬ÔÙµ½corejava1,corejava11
µ½JavaWebServer,java Web Prog ......

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

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

´«ÖDz¥¿Íjavaѧϰ Servlet¼àÌýÆ÷listener

½ñÌìÎÒѧϰÁËjavaweb µÄ¼àÌýÆ÷µÄ֪ʶ£¬ÊÇ·ëÀÏʦ½²µÄ¿Î£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
 
Servlet¼àÌýÆ÷listener£º
Ò»¡¢         ´´½¨£¨servletcontext£©ÉÏÏÂÎļàÌý£º
a)       ¶¨ÒåÒ»¸öÀ࣬ʵÏÖServletContextListener½Ó¿Ú£¬ÔÚweb.xmlÀïÃæ×¢²á¼àÌý£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ