C80£®Login.jspΪµÇ¼ҳÃ棬±íµ¥´úÂëÈçÏ£º
Index.jspÖÐÖ±½ÓÏÔʾÓû§Ãû£¬ÒÔÏÂÄÄÖÖ´úÂëÕýÈ·£¨£©¡££¨Ö»Ñ¡Ò»Ï
a) ${requestScope.name} b) <%=name%>
c) ${param.name} d) <%=param.name%>
A81£®ÔÚJ2EEÖУ¬ÈôÒªÔÚJSPÕýȷʹÓñêÇ©£º£¬ÔÚjspÖÐÉùÃ÷µÄtaglibÖ¸ÁîΪ£º<%@taglib uri = ¨D/WEB-INF/myTags.tld¡¬ prefix = ¨D_____¡¬>£¬Ï»®Ïß´¦Ó¦¸ÃÊÇ£¨£©¡££¨Ñ¡ÔñÒ»Ï
a) x
b) getKing c) myTags
d) king
A82£®JSP EL ±í´ïʽ£º${user.loginName}Ö´ÐÐЧ¹ûµÈͬÓÚ£¨ £©¡££¨Ñ¡ÔñÒ»Ï
a) <% = user.getLoginName()%> b) <%user.getLoginName();%> c) <% = user.loginName%> d) <% user.loginName;%>
AB83£®ÔÚ J2EEÖУ¬Ê¹Óà Servlet ¹ýÂËÆ÷£¬ÐèÒªÔÚ web.xmlÖÐÅäÖ㨣©ÔªËØ
a)
b) c) d)
A84£®ÔÚJ2EEÖУ¬±êÇ©¿âÖÐÎļþ£¨*.tld£©´æ·ÅÔÚ£¨£©Ä¿Â¼Ï¡£
a) WEB¡ªINF b) WEB¡ªINF/tags c) WEB¡ªINF/classes d) WEB¡ªINF/lib
A85£®Ä³JSPÖÐÓÐÈçÏ´úÂ룺
<%
pageContext .setAttribute(¨Da¡¬,¡¬page¡¬); request.setAttribute(¨Da¡¬,¡¬request¡¬);
session.setAttribute(¨Da¡¬,¡¬session¡¬); application.setAttribute(¨Da¡¬,¡¬application¡¬); %>
½á¹û£º${a}
ÔòÏÔʾ½á¹ûΪ£º
a) page b) request c) session d) application
D86£®ºËÐıêÇ©¿âÖУ¬ÓÃÀ´ÊµÏÖÑ»·¹¦ÄܵıêÇ©ÊÇ£¨£©
a) b) c) d)
A87£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£º£¨£©
a) 1 2 3 4 5
b) i i i i i c) 15
d) ´úÂëÓÐ´í£¬ÎÞ·¨ÏÔʾ
B88£®Ä³JSPÖÐÓÐÈçÏ´úÂ룬ÏÔʾ½á¹ûΪ£¨£©
<% int a = 5; request.setAttribute(¨Da¡¬,¡¬123¡¬); session.setAttribute(¨Da¡¬,¡¬456¡¬);
%>
a) 5 b) 123 c) 456 d) null D89£®ÒÔÏÂÄĸö²ÎÊý²»ÊôÓÚ±êÇ©£º a) var b) begin c) end d) delims A90£®ÒÔÏÂÄĸö·½·¨²»ÊÇTagSupportÀàµÄ·½·¨£º£¨£© a) doPost() b) doStartTag() c) doEndTag() d) doAfterBody() B91£®ÔÚ×Ô¶¨Òå±êÇ©ÖУ¬HelloTag¼Ì³Ð×ÔTagSupportÀ࣬ÆäÖÐÓÐÈçÏ´úÂ룺 out.println(¨DHELLO¡¬); ¸Ãout¶ÔÏóÉùÃ÷·½·¨Îª£º£¨£© a) PrintWriter out = response.getOut(); b) JspWriter out = pageContext.getOut(); c) JspWriter out = pageContext.getWriter(); d) PrintWriter out = response.getWriter(); A92£®×Ô¶¨Òå±êÇ©ÖУ¬Èç¹ûÒªÉùÃ÷±êÇ©²ÎÊýΪ±ØÐëµÄ£¬ÔòÐèÒª½øÐÐÄÄÖÖÅäÖ㺣¨£© a) true b) true c) false d) false C93£®ÈçÏ´úÂ룬ִÐÐЧ¹ûΪ£¨£© C94£®ÒÔÏÂÄĸö±êǩʵÏÖÁËswitch¹¦ÄÜ a) b) c) Óë d) B95£®EL±í´ïʽ£¬${10 mod 3}£¬Ö´Ðнá¹ûΪ£º a) 10 mod 3 b) 1 c) 3 d) null B96£®JspÖÐÓÐÈçÏ´úÂ룺 <% Cookie c = new Cookie(¨Dname¡¬ , ¨Dadmin¡¬); c.setMaxAge(10000); response.addCookie(c); %> ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª ÔÚºáÏß´¦£¬ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·ÏÔʾ¡¬admin¡¬£¨£© a) ${cookie.name} b) ${cookie.name.value} c) ${ name} d) ${name.value} D97£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£º£¨£© <% session.setAttribute(\%> a) a b) svse c) 2>1 d) Null B98£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£¨£©£º a) b) c) d) 1 2 3 4 5 1 3 5 i i i 15 var = \ D99£®ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·µ¼ÈëºËÐıêÇ©¿â£º£¨£© a) <% page import = ¨Dc¡¬%> b) <% page prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%> c) <% taglib prefix = ¨Dc¡¬ import = ¨D/WEB-INF/c.tld¡¬ %> d) <% taglib prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%> C100.ÔÚWEBÓ¦ÓóÌÐòµÄĿ¼½á¹¹ÖУ¬ÔÚWEB-INFÎļþ¼ÐÖеÄlibĿ¼ÊÇ·Å()ÎļþµÄ£¨Ö»Ñ¡Ò»Ï A..jspÎļþ B..classÎļþ C..jarÎļþ D.web.xmlÎļþ 11 JSPÔÚWeb·þÎñÆ÷ÉϵÄÔËÐнá¹û£º(A) A£®¿ÉÒÔÔÚWebä¯ÀÀÆ÷¿´µ½¡£ B. Ö»ÄÜÔÚWebä¯ÀÀÆ÷¿´µ½¡£ 12 ÔÚJSPÖÐʹÓÃA.²»·¢Éú±ä»¯¡£ B.·¢Éú±ä»¯¡£ 1234567
a) 5 b) 123 c) 456 d) null
D89£®ÒÔÏÂÄĸö²ÎÊý²»ÊôÓÚ±êÇ©£º
a) var
b) begin c) end d) delims
A90£®ÒÔÏÂÄĸö·½·¨²»ÊÇTagSupportÀàµÄ·½·¨£º£¨£©
a) doPost()
b) doStartTag() c) doEndTag()
d) doAfterBody()
B91£®ÔÚ×Ô¶¨Òå±êÇ©ÖУ¬HelloTag¼Ì³Ð×ÔTagSupportÀ࣬ÆäÖÐÓÐÈçÏ´úÂ룺
out.println(¨DHELLO¡¬); ¸Ãout¶ÔÏóÉùÃ÷·½·¨Îª£º£¨£©
a) PrintWriter out = response.getOut(); b) JspWriter out = pageContext.getOut(); c) JspWriter out = pageContext.getWriter(); d) PrintWriter out = response.getWriter();
A92£®×Ô¶¨Òå±êÇ©ÖУ¬Èç¹ûÒªÉùÃ÷±êÇ©²ÎÊýΪ±ØÐëµÄ£¬ÔòÐèÒª½øÐÐÄÄÖÖÅäÖ㺣¨£©
a) true b) true
c) false d) false
C93£®ÈçÏ´úÂ룬ִÐÐЧ¹ûΪ£¨£©
C94£®ÒÔÏÂÄĸö±êǩʵÏÖÁËswitch¹¦ÄÜ a) b) c) Óë d) B95£®EL±í´ïʽ£¬${10 mod 3}£¬Ö´Ðнá¹ûΪ£º a) 10 mod 3 b) 1 c) 3 d) null B96£®JspÖÐÓÐÈçÏ´úÂ룺 <% Cookie c = new Cookie(¨Dname¡¬ , ¨Dadmin¡¬); c.setMaxAge(10000); response.addCookie(c); %> ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª ÔÚºáÏß´¦£¬ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·ÏÔʾ¡¬admin¡¬£¨£© a) ${cookie.name} b) ${cookie.name.value} c) ${ name} d) ${name.value} D97£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£º£¨£© <% session.setAttribute(\%> a) a b) svse c) 2>1 d) Null B98£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£¨£©£º a) b) c) d) 1 2 3 4 5 1 3 5 i i i 15 var = \ D99£®ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·µ¼ÈëºËÐıêÇ©¿â£º£¨£© a) <% page import = ¨Dc¡¬%> b) <% page prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%> c) <% taglib prefix = ¨Dc¡¬ import = ¨D/WEB-INF/c.tld¡¬ %> d) <% taglib prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%> C100.ÔÚWEBÓ¦ÓóÌÐòµÄĿ¼½á¹¹ÖУ¬ÔÚWEB-INFÎļþ¼ÐÖеÄlibĿ¼ÊÇ·Å()ÎļþµÄ£¨Ö»Ñ¡Ò»Ï A..jspÎļþ B..classÎļþ C..jarÎļþ D.web.xmlÎļþ 11 JSPÔÚWeb·þÎñÆ÷ÉϵÄÔËÐнá¹û£º(A) A£®¿ÉÒÔÔÚWebä¯ÀÀÆ÷¿´µ½¡£ B. Ö»ÄÜÔÚWebä¯ÀÀÆ÷¿´µ½¡£ 12 ÔÚJSPÖÐʹÓÃA.²»·¢Éú±ä»¯¡£ B.·¢Éú±ä»¯¡£ 1234567
C94£®ÒÔÏÂÄĸö±êǩʵÏÖÁËswitch¹¦ÄÜ
b)
c) Óë
d)
B95£®EL±í´ïʽ£¬${10 mod 3}£¬Ö´Ðнá¹ûΪ£º
a) 10 mod 3
b) 1 c) 3
d) null
B96£®JspÖÐÓÐÈçÏ´úÂ룺
Cookie c = new Cookie(¨Dname¡¬ , ¨Dadmin¡¬); c.setMaxAge(10000); response.addCookie(c);
¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
ÔÚºáÏß´¦£¬ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·ÏÔʾ¡¬admin¡¬£¨£©
a) ${cookie.name} b) ${cookie.name.value} c) ${ name}
d) ${name.value}
D97£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£º£¨£© <%
session.setAttribute(\%>
a) a b) svse c) 2>1 d) Null
B98£®ÒÔÏ´úÂëÖ´ÐÐЧ¹ûΪ£¨£©£º
1 2 3 4 5 1 3 5 i i i 15
var = \
D99£®ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·µ¼ÈëºËÐıêÇ©¿â£º£¨£© a) <% page import = ¨Dc¡¬%> b) <% page prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%> c) <% taglib prefix = ¨Dc¡¬ import = ¨D/WEB-INF/c.tld¡¬ %> d) <% taglib prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%> C100.ÔÚWEBÓ¦ÓóÌÐòµÄĿ¼½á¹¹ÖУ¬ÔÚWEB-INFÎļþ¼ÐÖеÄlibĿ¼ÊÇ·Å()ÎļþµÄ£¨Ö»Ñ¡Ò»Ï A..jspÎļþ B..classÎļþ C..jarÎļþ D.web.xmlÎļþ 11 JSPÔÚWeb·þÎñÆ÷ÉϵÄÔËÐнá¹û£º(A) A£®¿ÉÒÔÔÚWebä¯ÀÀÆ÷¿´µ½¡£ B. Ö»ÄÜÔÚWebä¯ÀÀÆ÷¿´µ½¡£ 12 ÔÚJSPÖÐʹÓÃA.²»·¢Éú±ä»¯¡£ B.·¢Éú±ä»¯¡£ 1234567
D99£®ÒÔÏÂÄľä´úÂë¿ÉÒÔÕýÈ·µ¼ÈëºËÐıêÇ©¿â£º£¨£©
a) <% page import = ¨Dc¡¬%>
b) <% page prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%>
c) <% taglib prefix = ¨Dc¡¬ import = ¨D/WEB-INF/c.tld¡¬ %>
d) <% taglib prefix = ¨Dc¡¬ uri = ¨D/WEB-INF/c.tld¡¬%>
C100.ÔÚWEBÓ¦ÓóÌÐòµÄĿ¼½á¹¹ÖУ¬ÔÚWEB-INFÎļþ¼ÐÖеÄlibĿ¼ÊÇ·Å()ÎļþµÄ£¨Ö»Ñ¡Ò»Ï
A..jspÎļþ B..classÎļþ C..jarÎļþ
D.web.xmlÎļþ
11 JSPÔÚWeb·þÎñÆ÷ÉϵÄÔËÐнá¹û£º(A)
A£®¿ÉÒÔÔÚWebä¯ÀÀÆ÷¿´µ½¡£ B. Ö»ÄÜÔÚWebä¯ÀÀÆ÷¿´µ½¡£
12 ÔÚJSPÖÐʹÓÃA.²»·¢Éú±ä»¯¡£ B.·¢Éú±ä»¯¡£ 1234567
A.²»·¢Éú±ä»¯¡£ B.·¢Éú±ä»¯¡£