Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Ö¸ÁîÖÐÖ¸¶


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

java ÄÚ²¿Àà×ܽá

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

java»ñÈ¡Ò³Ãæ±àÂë

http://babyjoycry.javaeye.com/blog/587527
1. import info.monitorenter.cpdetector.io.CodepageDetectorProxy;
2. import info.monitorenter.cpdetector.io.HTMLCodepageDetector;
3. import info.monitorenter.cpdetector.io.JChardetFacade;
4.
5. import java.io.BufferedReader;
......

JAVA²Ù×÷XMLµÄÍêÕûÀý×Ó——W3C DOMƪ

ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
 <book>
  <name>¹þÀï²¨Ì ......

JSPÖж¨Ê±¹Ø±ÕÒ³ÃæµÄJS¿Ø¼þ


JS´úÂë
<script
type="text/javascript">
function closewindow(){
 window.returnValue = true;
 window.close();
}
function clock(){
 i = i -1;
 if(document.getElementById("info")){
  document.getElementById("info").innerHTML
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ