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ÉçÇøÀ´Ëµ,2009ÄêÊÇÒ»¸ö¶àÊÂÖ®Ä꣺OracleµÄÊÕ¹º´øÀ´Ï£Íûµ«¸ü¶àµÄÊǵ£ÓÇ£»¶ÔJava7µÄ½¹¼±µÈ´ý£»¶ÔÊÇ·ñÐèÒª±Õ°üµÄ³Ö
ÐøÕùÒ飻ÆäËûÊÕ¹º¶Ô¿ªÔ´ÉçÇøµÄÓ°Ïì±¾ÎÄÔ×÷ÕßJames SugrueÁªºÏJavaÉçÇøµÄÆäËûÈýλºËÐÄ¿ª·¢Õß¶Ô2009ÄêµÄJava½øÐÐÁËÅ̵㡣
James SugrueÊÇJavaLobbyºÍEclipseZoneµÄ±à¼£¬Ò»Î»Eclipse¿ª·¢Õߣ¬Jav ......
ƽʱµÄ¿ª·¢µ±ÖУ¬Í¨³£ÎÒÃÇÐèÒªÑéÖ¤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 ......
VectorÀàÔÚJava±à³ÌÖеÄÓ¦ÓÃ
Vector Àà Ìá ¹© ÁË Êµ ÏÖ ¿É Ôö ³¤ Êý ×é µÄ ¹¦ ÄÜ£¬ Ëæ ×Å ¸ü ¶à Ôª ËØ ¼Ó Èë Æä ÖУ¬
Êý ×é ±ä µÄ ¸ü ´ó¡£ ÔÚ É¾ ³ý Ò» Щ Ôª ËØ Ö® ºó£¬ Êý ×é ±ä С¡£
Vector ÓÐ Èý ¸ö ¹¹ Ôì º¯ Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity) ......
ÏÂÃæµÄÄÚÈÝ£¬ÎÒÃǽ«¸ü¶àµÄ¹Ø×¢DOM£¬ÎªDOM×÷Ò»¸ö½ÏΪÏêϸµÄ½âÎö£¬Ê¹ÎÒÃÇʹÓÃÆðÀ´¸üΪµÃÐÄÓ¦ÊÖ¡£
DOMÏê½â
1£®»ù±¾µÄDOM¶ÔÏó
DOMµÄ»ù±¾¶ÔÏóÓÐ5¸ö£ºDocument£¬Node£¬NodeList£¬ElementºÍAttr¡£ÏÂÃæ¾ÍÕâЩ¶ÔÏóµÄ¹¦ÄܺÍʵÏֵķ½·¨×÷Ò»¸ö´óÖµĽéÉÜ¡£
Document¶ÔÏó´ú±íÁËÕû¸öXMLµÄÎĵµ£¬ËùÓÐÆäËüµÄNode£¬¶¼ÒÔÒ»¶¨µÄ˳Ðò°üº ......