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

´«ÖDz¥¿ÍJavaÅàѵ JSPÄÚÖöÔÏó¡¢Òì³£´¦ÀíÓëÂÒÂëÎÊÌâ

JSP¾Å´óÄÚÖöÔÏó£º
       1.ÓëServletÓйصÄÒþº¬µÄ¶ÔÏó
          (1)page  page¶ÔÏó¶ÔÓ¦JavaÖеĹؼü×Öthis,Ëü´ú±íµ±Ç°JSPÒ³Ãæ
          (2)config  Config¶ÔÏóʹÓÃWebÈÝÆ÷ÔÚ³õʼ»¯JSP֮ǰµÃµ½JSPÅäÖÃÐÅÏ¢£¬configµÄ×÷ÓÃÓòΪÕû¸öÒ³Ã棬Ó÷¨¸úservletConfigÏàͬ
       2.ÓëInput/OutputÓйصÄÒþº¬¶ÔÏó
 (3)out  out¶ÔÏó½«ÏìÓ¦µÄÐÅÏ¢Êä³öµ½ÍøÒ³ÉÏ£¬Æ仺³å´óСͨ¹ýpageÖ¸Áî±êÇ©µÄbufferÊôÐÔÉèÖÃ
          (4)request  ·â×°ÁËä¯ÀÀÆ÷·¢³öµÄÇëÇó¶ÔÏó£¬ËüµÄ×÷ÓÃÓòÊÇÒ»¸öÍêÕûµÄÇëÇó£¬Õ⽫×÷Ϊ_jspServiceµÄÈë¿Ú²ÎÊý
 (5)response ·â×°ÏìÓ¦ÄÚÈݵĶÔÏó£¬×÷ÓÃÓòÊÇÕû¸öÒ³Ãæ³£Ó÷½·¨:response.setHeader("refresh","1;url="Ò³ÃæÃû³Æ""); response.sendRedirect("Ò³ÃæÃû³Æ")Öض¨Ïò
       3.JSPÖ´ÐÐʱ£¬ÌṩÓйØContextµÄÒþº¬¶ÔÏó
(6)session  ¿Í»§¶Ë·¢ËÍÒ»¸öÇëÇóʱ£¬ÔÚ·þÎñÆ÷ÉϽ«´´½¨Ò»¸ö»á»°Î¬»¤Õâ¸ö¿Í»§µÄ¸÷ÖÖ²Ù×÷£¬¸Ã¶ÔÏó³ÆΪsession,Ö»ÒªÖ¸Áî±êÇ©ÖÐûÓн«»á»°È¡Ïû(<%@ page session=”false”%>,¾Í¿ÉÒÔʹÓøöÔÏó£¬Í¨¹ýsession¶ÔÏóµÄsetAttributeºÍgetAttribute·½·¨¿Éά»¤sessionÖеĶÔÏó¡£µ±session=falseʱ£¬¿ÉÒÔÓÃrequest.getSession()·½·¨»ñÈ¡session
 
(7)application  ËüÌṩÁËÒ»×éºÍWebÈÝÆ÷ͨÐŵķ½·¨£¬Ã¿¸öÓ¦ÓóÌÐò¶¼ÓÐÒ»¸öÉÏÏÂÎÄ£¬ÕâÒâζ×ÅApplication¶ÔÏóÄܹ»ÔÚÓ¦ÓóÌÐòµÄÕû¸öÉúÃüÖÜÆÚ·ÃÎÊ¡£ÓëservletµÄservletContext¶ÔÏóÓ÷¨Ïàͬ
 
(8)pageContext  pageContext¶ÔÏó·â×°Á˵±Ç°JSPÒ³ÃæµÄÔËÐÐÐÅÏ¢£¬ËüÌṩÁË·µ»ØJSPÒ³ÃæµÄÆäËûÒþʽ¶ÔÏóµÄ·½·¨¡£ PageContextÀàÖж¨ÒåÁËÒ»¸ösetAttribute·½·¨À´½«¶ÔÏó´æ´¢½øpageContext¶ÔÏóÄÚ²¿µÄÒ»¸öHashMap¶ÔÏóÖУ¬Í¬Ê±Ò²¶¨ÒåÁËÒ»¸ögetAttribute·½·¨À´¼ìË÷´æ´¢ÔÚ¸ÃHashMap¶ÔÏóÖеĶÔÏó¡£PageContextÀà³ýÁË¿ÉÒÔ´æ´¢ºÍ¼ìË÷×ÔÉíÖеÄÊôÐÔ¶ÔÏóÍ⣬»¹¶¨ÒåÁË¿ÉÒÔ´æ´¢ºÍ¼ìË÷ÆäËûÓò·¶Î§ÄÚµÄÊôÐÔ¶ÔÏóµÄ·½·¨¡£ 
       4.ÓëErrorÓйضÔÏóµÄÒþº¬¶ÔÏó
(9)exception  ÊÇjava.lang.ThrowableµÄÒ»¸öʵÀý£¬Ëü´ú±íδÆË»ñµÄÒì³££¬Ö»ÓÐÔÚpageÖ¸ÁîÖÐÖ¸¶


Ïà¹ØÎĵµ£º

java ÄÚ²¿Àà×ܽá

Ò»¡¢ ¶¨Òå
·ÅÔÚÒ»¸öÀàµÄÄÚ²¿µÄÀàÎÒÃǾͽÐÄÚ²¿Àà¡£
¶þ¡¢ ×÷ÓÃ
1.ÄÚ²¿Àà¿ÉÒԺܺõÄʵÏÖÒþ²Ø
  Ò»°ãµÄ·ÇÄÚ²¿À࣬ÊDz»ÔÊÐíÓÐ private ÓëprotectedȨÏ޵ģ¬µ«ÄÚ²¿Àà¿ÉÒÔ
2£®ÄÚ²¿ÀàÓµÓÐÍâΧÀàµÄËùÓÐÔªËصķÃÎÊȨÏÞ
3.¿ÉÊÇʵÏÖ¶àÖؼ̳Ð
4.¿ÉÒÔ±ÜÃâÐ޸ĽӿڶøʵÏÖͬһ¸öÀàÖÐÁ½ÖÖͬÃû·½·¨µÄµ÷Óá£
Èý¡¢  ......

java.lang.reflect.Method £¨java·´Éä»úÖÆ£©

¹«Ë¾Vac·½·¨¹ýÂËÆ÷ʹÓõ½·´Éä»úÖÆ£¬¶ÁÈ¡xmlÅäÖÃÎļþ¹ýÂËÓû§·ÃÎʵķ½·¨ÃûÊÇ·ñºÏ·¨¡£
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        HttpServletRequest httpRequest = (HttpServletRe ......

JAVAʵÏÖÑéÖ¤Âë

Ò»¡¢Ö÷Òª¹¦ÄÜ£º

1¡¢Ö§³Ö´¿Êý×Ö¡¢´óд×Öĸ¡¢Ð¡Ð´×Öĸ£¬¼°Á½Á½»ìºÏ»òÈýÕß»ìºÏÀàÐÍÑéÖ¤Â룻
2¡¢Ö§³Ö×Ô¶¨ÒåÌØÊâ×Ö·ûÅųý£¨Èç0oOi1jI£©£»
3¡¢Ö§³ÖͼƬ¼°ÎÄ×ÖÁ½ÖÖÀàÐÍÑéÖ¤Â룻
4¡¢Ö§³Ö×Ô¶¨ÒåÑéÖ¤ÂëͼƬ´óС£»
5¡¢Ö§³Ö×Ô¶¨Òå¸ÉÈÅÏßÌõÊý£»
6¡¢Ö§³Ö×Ô¶¨Òå¼°Ëæ»ú¶¨ÒåͼƬ¡¢ÎÄ×Ö¡¢¸ÉÈÅÏßÑÕÉ«£»

......

JavaÃÕÌâ1 7»¥»»ÄÚÈÝ

ÏÂÃæµÄ³ÌÐòʹÓÃÁ˸´ºÏµÄÒì»ò¸³Öµ²Ù×÷·û£¬ËüËùչʾµÄ¼¼ÊõÊÇÒ»ÖÖ±à³ÌÏ°Ëס£ÄÇôËü»á´òÓ¡³öʲôÄØ£¿
public class CleverSwap{
public static void main(String[] args){
int x = 1984; // (0x7c0)
int y = 2001; // (0x7d1)
x^= y^= x^= y;
System.out.println("x= " + x + "; y= " + y);
}
}
¾ÍÏñÆäÃû³Æ ......

JSPÁ¬½ÓSQL SERVER 2008 ÕÒ²»µ½Çý¶¯

ÄÄλ¸ßÊÖÄÜ°ïÎÒ¿´ÏÂΪʲôÅ׳öÕâЩÒì³££¿
´úÂë
<%@ page language="java" import="java.util.*" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="GB2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ