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

JAVA ÅàѵÌâ¿â JSP

Ò»¡¢JSP_Ñ¡ÔñÌâ
1. ÒÔÏÂÑ¡ÏîÖв»ÊÇjspÒþʽ¶ÔÏóµÄÊÇ£º£¨ £©
A  pageContext
B  context
C  application
D  out
²Î¿¼´ð°¸£ºB
2. ÏÂÃæÄÄÒ»¸ö²»ÊÇJSP±¾ÉíÒѼÓÔصĻù±¾Àࣿ£¨ £©
A  java.lang.* 
B  java.io.* 
C  javax.servlet.* 
D  javax.servlet.jsp.*
²Î¿¼´ð°¸£ºB
3. ÒÔ϶ÔÓÚÔ¤¶¨Òå<%!Ô¤¶¨Òå%>µÄ˵·¨´íÎóµÄÊÇ£º£¨ £©
A  Ò»´Î¿ÉÉùÃ÷¶à¸ö±äÁ¿ºÍ·½·¨£¬Ö»ÒªÒÔ“£»”½áβ¾ÍÐÐ
B  Ò»¸öÉùÃ÷½öÔÚÒ»¸öÒ³ÃæÖÐÓÐЧ
C  ÉùÃ÷µÄ±äÁ¿½«×÷Ϊ¾Ö²¿±äÁ¿
D  ÔÚÔ¤¶¨ÒåÖÐÉùÃ÷µÄ±äÁ¿½«ÔÚJSPÒ³Ãæ³õʼ»¯Ê±³õʼ»¯
²Î¿¼´ð°¸£ºC
4. ÏÂÁйØÓÚJavaBeanµÄ˵·¨ÕýÈ·µÄÊÇ£º£¨ £©
A  JavaÎļþÓëBeanËù¶¨ÒåµÄÀàÃû¿ÉÒÔ²»Í¬£¬µ«Ò»¶¨Òª×¢ÒâÇø·Ö×ÖĸµÄ´óСд
B  ÔÚJSPÎļþÖÐÒýÓÃBean£¬Æäʵ¾ÍÊÇÓÃ<jsp:useBean>Óï¾ä
C  ±»ÒýÓõÄBeanÎļþµÄÎļþÃûºó׺Ϊ.java 
D  BeanÎļþ·ÅÔÚÈκÎĿ¼Ï¶¼¿ÉÒÔ±»ÒýÓÃ
²Î¿¼´ð°¸£ºA
5. Ò»¸öJSP Ò³Ãæ¾­¹ý±àÒëÖ®ºó£¬½«´´½¨Ò»¸ö£º£¨ £©
A£® applet
B£® severlet
C£® application
D£® exeÎļþ
²Î¿¼´ð°¸£ºB
6. ÔÚJSPÖÐʹÓÃ<jsp:getProperty>±ê¼Çʱ£¬²»»á³öÏÖµÄÊôÐÔÊÇ£º£¨£©
A  name 
B  property
C  value  
D  ÒÔÉϽԲ»»á³öÏÖ
²Î¿¼´ð°¸£ºC
7. ÔÚjspÖУ¬Òª¶¨ÒåÒ»¸ö·½·¨£¬ÐèÒªÓõ½ÒÔÏÂÄĸöÔªËØ£¿£¨ £©
A  <%= %>
B  <% %>
C  <%! %>
D  <%@ %>
²Î¿¼´ð°¸£ºC
8. ÔÚJSPÖУ¬ÒÔÏÂÄĸöÖ¸ÁîÊÇÓÃÓÚ½«ÎļþǶÈëJSPÒ³ÃæµÄ£¿£¨ £©
A  page
B  forward
C  include
D  taglib
²Î¿¼´ð°¸£ºC
9. ÔÚÒ»¸öJSPÖУ¬ÓÐÒ»ÐдúÂ룺<%=”2”+”4”%>£¬ÕâÐдúÂ뽫Êä³öʲô½á¹û£¿£¨£©
A  2+4
B  6
C  24
D  ²»»áÊä³ö£¬ÒòΪ±í´ïʽÊÇ´íÎóµÄ
²Î¿¼´ð°¸£ºC
10. ÔÚJ2EEÖУ¬Ò»¸ötest.jspÎļþÈçÏ£¬ÊÔͼÔËÐÐʱ£¬½«·¢ÉúʲôÇé¿ö£º£¨£©
<html>
<% String str=null;%>
str is <%=”str”%>
</html>
A  ×ªÒëÆÚ´íÎó
B  ±àÒëÆÚ´íÎó
C  ÔËÐкó£¬ä¯ÀÀÆ÷ÉÏÏÔʾ£ºstr is null
D  ÔËÐкó£¬ä¯ÀÀÆ÷ÉÏÏÔʾ£ºstr is str
²Î¿¼´ð°¸£ºD
11. PageÖ¸ÁîÓÃÓÚ¶¨ÒåJSPÎļþ


Ïà¹ØÎĵµ£º

Java¿ª·¢WebServiceʵÀý ¼ÆÊýÆ÷


Ò»¡¢Ç°ÑÔ
   ±¾Îļٶ¨ÄãÓÐÒ»¶¨µÄJ2EE¿ª·¢¾­Ñ飬Õâ¸ö½Ì³ÌûÓйý¶àµÄÉæ¼°»ù´¡ÖªÊ¶ºÍ¿ª·¢Ï¸½Ú¡£Èç¹ûÔÚÔĶÁ¹ý³Ì³öÓÐʲôÎÊÌ⣬»¹ÇëÓëÎÒÁªÏµ½»Á÷¡£
     Èç¹ûʹÓÃGOOGLE¡¢BAIDUµÈËÑË÷¹¤¾ß£¬ËÑË÷WebServiceµÄÏà¹Ø֪ʶ£¬¿ÉÒԲ鵽N¶àµÄÍøÒ³£¬ÎÒ¾ÍÊÇͨ¹ýÕâЩÍøÒ³µÄѧϰ£¬Öð½¥ÕÆÎÕÁËЩW ......

Java ±ê×¼ÈÕÖ¾¹¤¾ß Log4j µÄʹÓ㨸½Ô´´úÂ룩

Java ±ê×¼ÈÕÖ¾¹¤¾ß Log4j µÄʹÓ㨸½Ô´´úÂ룩
        Ô´´úÂëÏÂÔØ
        Log4j ÊÇÊÂʵÉ쵀 Java ±ê×¼ÈÕÖ¾¹¤¾ß¡£»á²»»áÓà Log4j ÔÚÒ»¶¨³Ì¶ÈÉÏ¿ÉÒÔ˵ÊǺâÁ¿Ò»¸ö¿ª·¢ÈËÔ±ÊÇ·ñÊÇһλºÏ¸ñµÄ
Java ³ÌÐòÔ±µÄ±ê×¼¡£Èç¹ûÄãÊÇÒ»Ãû Java ³ÌÐòÔ±£¬Èç¹ûÄ㻹 ......

java³£ÓÃ×é¼þÏÂÔصØÖ·

q        ¿ªÔ´Êý¾Ý¿âMySQLµÄ¹Ù·½ÍøÕ¾
http://www.mysql.com
q        JSTL±ê×¼±êÇ©¿âµÄÏÂÔØÍøÕ¾
http://java.sun.com/products/jsp/jstl
q        Struts1µÄ¹Ù·½ÍøÕ¾
http://struts.apache.org
q &n ......

Java Email¼òµ¥ÑéÖ¤

ƽʱµÄ¿ª·¢µ±ÖУ¬Í¨³£ÎÒÃÇÐèÒªÑéÖ¤EmailµØÖ·µÄºÏ·¨ÐÔ£¬Ê×ÏÈÒªÔÚÑéÖ¤´ËµØÖ·ÊÇ·ñ·ûºÏ¹æ·¶£¬Èô·ûºÏ¹æ·¶£¬ÔÙ·¢ÓʼþÒÔÈ·Èϴ˵ØÖ·ÊÇ·ñ´æÔÚ¡£
Ô´ÂëÈçÏ£º
public static boolean validateEmail(String email){
//Pattern pattern = Pattern.compile("[0-9a-zA-Z]*.[0-9a-zA-Z]*@[a-zA-Z]*.[a-zA-Z]*", Pattern.LITE ......

JavaµÄXMLÎļþ²Ù×÷Ö®DOMÈëÃÅƪ £¨2£©

ÏÂÃæµÄÄÚÈÝ£¬ÎÒÃǽ«¸ü¶àµÄ¹Ø×¢DOM£¬ÎªDOM×÷Ò»¸ö½ÏΪÏêϸµÄ½âÎö£¬Ê¹ÎÒÃÇʹÓÃÆðÀ´¸üΪµÃÐÄÓ¦ÊÖ¡£
DOMÏê½â
1£®»ù±¾µÄDOM¶ÔÏó
DOMµÄ»ù±¾¶ÔÏóÓÐ5¸ö£ºDocument£¬Node£¬NodeList£¬ElementºÍAttr¡£ÏÂÃæ¾ÍÕâЩ¶ÔÏóµÄ¹¦ÄܺÍʵÏֵķ½·¨×÷Ò»¸ö´óÖµĽéÉÜ¡£
Document¶ÔÏó´ú±íÁËÕû¸öXMLµÄÎĵµ£¬ËùÓÐÆäËüµÄNode£¬¶¼ÒÔÒ»¶¨µÄ˳Ðò°üº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ