jspÌâ¿â£¨ÕûÀí£©

Ñ¡ÔñÌâ

1¡¢pageÖ¸ÁîÓÃÓÚ¶¨ÒåJSPÎļþÖеÄÈ«¾ÖÊôÐÔ£¬ÏÂÁйØÓÚ¸ÃÖ¸ÁîÓ÷¨µÄÃèÊö²»ÕýÈ·µÄÊÇ£º£¨ £©¡£

A¡¢<%@ page %>×÷ÓÃÓÚÕû¸öJSPÒ³Ãæ B¡¢¿ÉÒÔÔÚÒ»¸öÒ³ÃæÖÐʹÓöà¸ö<%@ page %>Ö¸Áî

C¡¢ÎªÔöÇ¿³ÌÐòµÄ¿É¶ÁÐÔ£¬½¨Ò齫<%@ page %>Ö¸Áî·ÅÔÚJSPÎļþµÄ¿ªÍ·£¬µ«²»ÊDZØÐëµÄ

D¡¢<%@ page %>Ö¸ÁîÖеÄÊôÐÔÖ»ÄܳöÏÖÒ»´Î

2¡¢ÒÔ϶ÔÏóÖÐ×÷ÓÃÓò×î´óµÄÊÇ£¨ £©¡£

A¡¢request B¡¢session C¡¢application D¡¢page

3¡¢±àдJavaBean¾ÍÊDZàдһ¸öJavaÀ࣬ËùÒÔÖ»Òª»áдÀà¾ÍÄܱàдһ¸öBean£¬Ò»¸öÍêÕûJavaBeanÔÚÀàµÄÃüÃûÉÏÐèÒª×ñÊØÒÔϹæÔò£¬ÆäÖдíÎóµÄÊÇ£¨ £©¡£

A¡¢ÀàÖз½·¨µÄ·ÃÎÊÊôÐÔ±ØÐëÊÇpublicµÄ¡£

B¡¢¶ÔÓÚbooleanÀàÐ͵ijÉÔ±±äÁ¿£¬ÔÊÐíʹÓÃis´úÌæget¡£

C¡¢ÀàÖÐÈç¹ûÓй¹Ôì·½·¨£¬ÄÇôÕâ¸ö¹¹Ôì·½·¨Ò²ÊÇpublicµÄ£¬²¢ÇÒÊÇÎÞ²ÎÊýµÄ¡£ D¡¢ÔÚJavaBeanÖж¨ÒåÊôÐÔʱ£¬Ó¦¸Ã¶¨Òå³Épublic¡£

4¡¢ÒÔÏÂËĸöÑ¡ÏîÖв»ÊôÓÚServletÉúÃüÖÜÆÚµÄÊÇ£¨ £©¡£

A¡¢init£¨£© B¡¢service() C¡¢start() D¡¢destroy()

5¡¢¶ÔÓÚÔ¤¶¨Òå<%!Ô¤¶¨Òå%>µÄ˵·¨´íÎóµÄÊÇ£º£¨ C £©¡£

A¡¢Ò»´Î¿ÉÉùÃ÷¶à¸ö±äÁ¿ºÍ·½·¨£¬Ö»ÒªÒÔ¨D;¡¬½áβ¾ÍÐÐ B¡¢Ò»¸öÉùÃ÷½öÔÚÒ»¸öÒ³ÃæÖÐÓÐЧ

C¡¢ÉùÃ÷µÄ±äÁ¿½«×÷Ϊ¾Ö²¿±äÁ¿

11. ÄĸöÊÇJSPÖ¸Áî±ê¼Ç£¿(C)

A. <% ¡­¡­ %> B. <%! ¡­¡­ %> C. <%@ ¡­¡­ %> D. <%= ¡­¡­ %>

10. ϱßÄĸö²»ÊÇJSPµÄÄÚÖöÔÏó£¿(C)

A. session B. request C. cookie D. out

12. µ±ÔÚJSPÎļþÖÐҪʹÓõ½Vector¶ÔÏóʱ£¬Ó¦ÔÚJSPÎļþÖмÓÈëÒÔÏÂÄĸöÓï¾ä£¿(C)

A. B.

C. <%@ page import=¡¬java.util.*¡¬ %> D. <%@ page include=¡¬java.util.*¡¬ %>

13. ¹ØÓÚJavaBeanµÄ˵·¨£¬ÄĸöÊÇÕýÈ·µÄ£¿(D)

A. B. C. D.

JavaBeanµÄ¾ßÌåÀà¿ÉÒÔ²»ÊÇpublicµÄ¡£

JavaBean¿ÉÒÔÖ»Ìṩһ¸ö´ø²ÎÊýµÄ¹¹ÔìÆ÷¡£ jsp:userBean¿ÉÒÔÏòHTML±ê¼ÇÒ»Ñù²»¹Ø±Õ¡£ JavaBean¿ÉÒÔ±£´æ״̬¡£

15. ÒªÔÚsession¶ÔÏóÖб£´æÊôÐÔ£¬¿ÉÒÔʹÓÃÒÔÏÂÄĸöÓï¾ä£¿B

A. session.getAttribute(¨Dkey¡¬,¡¬value¡¬); B. session.setAttribute(¨Dkey¡¬,¡¬value¡¬); C. session.setAtrribute(¨Dkey¡¬); D. session.getAttribute(¨Dkey¡¬);

16. jsp:forwardºÍsendRedirect¶¼ÊÇÓÃÀ´×öÒ³ÃæÌøתµÄ£¬ÃèÊö´íÎóµÄÊÇ£¿D

A. forwardÖ®ºó¿ÉÒÔʹÓÃÔ­À´µÄrequest¶ÔÏ󣬶øÇÒЧÂʽϸߡ£

B. sendRedirectÖ®ºó²»¿ÉÒÔʹÓÃÔ­À´µÄrequest¶ÔÏ󣬶øÇÒЧÂʽϵ͡£ C. forwardµØÖ·À¸²»±ä»¯£¬Ö»ÄÜÔÚWebÓ¦ÓóÌÐòÄÚµÄÒ³Ãæ¼äÌøת¡£ D. forwardµØÖ·À¸±ä»¯£¬¿ÉÒÔÌøתµ½ÈκÎÒ³ÃæºÍ»úÆ÷¡£

17. ¹ØÓÚgetºÍpostÁ½ÖÖÇëÇó£¬ÏÂÁÐ˵·¨ÕýÈ·µÄÊÇ£¿A

A. getÇëÇóÊÇĬÈϵġ£

B. getÇëÇó´¦ÀíµÄÊý¾ÝÁ¿´óС²»Êܵ½ÏÞÖÆ¡£//get´¦ÀíСÊý¾ÝÁ¿ C. postÇëÇóµØÖ·À¸ÀïÊÇÄÜ¿´µ½Êý¾ÝµÄ¡£ D. postÇëÇó¿ÉÒÔÓÉdoGet·½·¨´¦Àí¡£

19. JSP·ÖÒ³´úÂëÖУ¬Äĸö²½Öè´ÎÐòÊÇÕýÈ·µÄ£¿A

A. ÏÈÈ¡×ܼǼÊý£¬µÃµ½×ÜÒ³Êý£¬ÔÙÈ¡ËùÓеļǼ£¬×îºóÏÔʾ±¾Ò³µÄÊý¾Ý¡£ B. ÏÈÈ¡ËùÓеļǼ£¬µÃµ½×ÜÒ³Êý£¬ÔÙÈ¡×ܼǼÊý£¬×îºóÏÔʾ±¾Ò³µÄÊý¾Ý¡£ C. ÏÈÈ¡×ÜÒ³Êý£¬µÃµ½×ܼǼÊý£¬ÔÙÈ¡ËùÓеļǼ£¬×îºóÏÔʾ±¾Ò³µÄÊý¾Ý¡£ D. ÏÈÈ¡±¾Ò³µÄÊý¾Ý£¬µÃµ½×ÜÒ³Êý£¬ÔÙÈ¡×ܼǼÊý£¬×îºóÏÔʾËùÓеļǼ¡£

20. ϱßÄĸö²»ÊÇMVCÖеÄ×é³É²¿·Ö£¿B

A. JavaBean B. FrameWork C. SP D. Servlet

21. Äĸö²»ÊÇServlet½Ó¿ÚµÄ·½·¨£¿D

A. doGet·½·¨ B. doPost·½·¨ C. init·½·¨ D. forward·½·¨

22. OracleÊý¾Ý¿âµÄJDBCÇý¶¯³ÌÐòÀàÃû¼°ÍêÕû°ü·¾¶Îª£ºD

A. jdbc.driver.oracle.OracleDriver B. jdbc.oracle.driver.OracleDriver C. driver.oracle.jdbc.OracleDriver D. oracle.jdbc.driver.OracleDriver

23. Èç¹ûÐèҪɾ³ýsessionÖеÄij¸öÊôÐÔkey£¬¿ÉÒÔµ÷ÓÃÏÂÃæµÄ___C_·½·¨¡£

A. B. C. D.

remove(¨Dkey¡¬)

removeAttribute(¨Dkey¡¬) invalidate() logout()

24. ÏÂÊöÓйØJSPºÍServlet¹ØϵµÄÂÛÊöÕýÈ·µÄÓУº£¨Á½¸öÕýÈ·´ð°¸£©AB

A. JSPÄܹ»ÊµÏÖ¹¦Äܾù¿ÉÓÉServletʵÏÖ¡£

B. ServletÄܹ»ÊµÏÖ¹¦Äܾù¿ÉÓÉJSPʵÏÖ¡£ C. Servlet¸üÊʺÏ×ö±íÏֲ㡣 D. JSPÊʺÏ×ö¿ØÖƲ㡣

25. ÏÂÃæÄÄÒ»¸öÊÇÕýȷʹÓÃJavaBeanµÄ·½Ê½£¿A

A.

B.

26. Ïú»ÙÒ»¸ösession¶ÔÏóÓ¦¸Ãµ÷ÓÃÏÂÃæÄÄÒ»¸ö·½·¨£¿A

A. session.invalidate(); B. session.expunge();

C. session.destroy(); D. session.end();

4¡¢ÏÂÊöÑ¡ÏîÖв»ÊôÓÚJDBC»ù±¾¹¦ÄܵÄÊÇ£º£¨ D £©

A. ÓëÊý¾Ý¿â½¨Á¢Á¬½Ó

B. Ìá½»SQLÓï¾ä C. ´¦Àí²éѯ½á¹û D. Êý¾Ý¿âά»¤¹ÜÀí

5¡¢ÔÚJSPÖÐʹÓñê¼Çʱ£¬²»»á³öÏÖµÄÊôÐÔÊÇ£º£¨ c £©

A. name B. property C. value D. ÒÔÉϽԲ»»á³öÏÖ

7¡¢ÔÚJSPÖе÷ÓÃJavaBeanʱ²»»áÓõ½µÄ±ê¼ÇÊÇ£º£¨ A £©

A. B. C. D.

8¡¢¹ØÓÚJavaBeanÕýÈ·µÄ˵·¨ÊÇ£º£¨ A£©

A¡¢JavaÎļþÓëBeanËù¶¨ÒåµÄÀàÃû¿ÉÒÔ²»Í¬£¬µ«Ò»¶¨Òª×¢ÒâÇø·Ö×ÖĸµÄ´óСд

B¡¢ÔÚJSPÎļþÖÐÒýÓÃBean£¬Æäʵ¾ÍÊÇÓÃÓï¾ä C¡¢±»ÒýÓõÄBeanÎļþµÄÎļþÃûºó׺Ϊ.java D¡¢BeanÎļþ·ÅÔÚÈκÎĿ¼Ï¶¼¿ÉÒÔ±»ÒýÓÃ

9¡¢Servlet³ÌÐòµÄÈë¿ÚµãÊÇ£º£¨A £©

A¡¢init£¨£© B¡¢main£¨£© C¡¢service£¨£© D¡¢doGet£¨£©

10¡¢²»ÄÜÔÚ²»Í¬Óû§Ö®¼ä¹²ÏíÊý¾ÝµÄ·½·¨ÊÇ£¨A £©

A¡¢Í¨¹ýcookie B¡¢ÀûÓÃÎļþϵͳ C¡¢ÀûÓÃÊý¾Ý¿â D¡¢Í¨¹ýServletContext¶ÔÏó

5.±àдServlet µÄdoPost·½·¨Ê±£¬ÐèÒªÅ׳öÒ쳣Ϊ£¨A£©¡££¨Ö»Ñ¡Ò»Ï

A.ServletException£¬ IOException

B.ServletException£¬ RemoteException C.HttpServletException£¬ IOException D.HttpServletException£¬ RemoteException

6.ÓйػỰ¸ú×Ù¼¼ÊõÃèÊöÕýÈ·µÄÊÇ£¨ABC£©¡££¨Ñ¡ÔñÈýÏ

A.CookieÊÇWeb·þÎñÆ÷·¢Ë͸ø¿Í»§¶ËµÄһС¶ÎÐÅÏ¢£¬¿Í»§¶ËÇëÇóʱ£¬¿ÉÒÔ¶ÁÈ¡¸ÃÐÅÏ¢

·¢Ë͵½·þÎñÆ÷¶Ë

B.¹Ø±Õä¯ÀÀÆ÷ÒâζׯỰID¶ªÊ§£¬µ«ËùÓÐÓëÔ­»á»°¹ØÁªµÄ»á»°Êý¾ÝÈÔ±£ÁôÔÚ·þÎñÆ÷ÉÏ£¬

Ö±ÖÁ»á»°¹ýÆÚ

C.ÔÚ½ûÓÃCookieʱ¿ÉÒÔʹÓÃURLÖØд¼¼Êõ¸ú×ٻỰ

D.Òþ²Ø±íµ¥Óò½«×Ö¶ÎÌí¼Óµ½HTML±íµ¥²¢ÔÚ¿Í»§¶Ëä¯ÀÀÆ÷ÖÐÏÔʾ

7.ÒÔÏ£¨ A £©¿ÉÓÃÓÚ¼ìË÷sessionÊôÐÔuseridµÄÖµ¡££¨Ö»Ñ¡Ò»Ï

A.session. getAttribute (¨Duserid¡¬); B.session. setAttribute (¨Duserid¡¬); C.request. getParameter (¨Duserid¡¬); D.request. getAttribute (¨Duserid¡¬);

8.ÓйØServletµÄÉúÃüÖÜÆÚ˵·¨ÕýÈ·µÄÓУ¨ CD £©¡£ £¨Ñ¡ÔñÁ½Ï

A.ServletµÄÉúÃüÖÜÆÚÓÉServletʵÀý¿ØÖÆ

B.init()·½·¨ÔÚ´´½¨ÍêServletʵÀýºó¶ÔÆä½øÐгõʼ»¯£¬´«µÝµÄ²ÎÊýΪʵÏÖServletContext½Ó¿ÚµÄ¶ÔÏó

C.service()·½·¨ÏìÓ¦¿Í»§¶Ë·¢³öµÄÇëÇó D.destroy()·½·¨ÊÍ·ÅServletʵÀý

9.ÔÚJ2EEÖУ¬ÒÔ϶ÔRequestDispatcherÃèÊöÕýÈ·µÄÊÇ£¨C£©¡£(Ñ¡ÔñÒ»Ï

A.JspÖÐÓиöÒþº¬µÄ¶ÔÏódiapatcher,ËüµÄÀàÐÍÊÇRequestDispatcher

B.ServletConfigÓÐÒ»¸ö·½·¨£ºgetRequestDispatcher¿ÉÒÔ·µ»ØRequestDipatcher¶ÔÏó C.RequestDipatcher ÓÐÒ»¸ö·½·¨£ºforward¿ÉÒÔ°ÑÇëÇó¼ÌÐø´«µÝ¸ø±ðµÄServlet»òÕßJSP

½çÃæ

D.JSPÖÐÓиöÒþº¬µÄĬÈ϶ÔÏórequest£¬ËüµÄÀàÐÍÊÇRequestDipatcher

10.ÔÚWEBÓ¦ÓóÌÐòµÄĿ¼½á¹¹ÖУ¬ÔÚWEB-INFÎļþ¼ÐÍâµÄÎļþΪ£¨A£©¡££¨Ö»Ñ¡Ò»Ï

A..jspÎļþ

B..classÎļþ C..jarÎļþ D.web.xmlÎļþ

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)