单项选择题X 纠错

A. Set the body content type to JSP in the TLD
B. Scriptlet code is NOT legal in the body of st:simple
C. Add scripting-enabled= “true” to the start tag for the st:simple element
D. Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and      place the scriptlet code in the body of that tag.

参考答案:
查答案就用赞题库小程序 还有拍照搜题 语音搜题 快来试试吧
无需下载 立即使用

你可能喜欢

单项选择题

A. It is impossible to determine the deepest nesting depth because it is impossible for tag handlers that extend SimpleTagSupport to communicate with their parent and child tags
B. Create a private non-static attribute in the tag handler class called count of type int initialized to      oIncrement count in the doTag method. If the tag has a body, invoke the fragment for that body. Otherwise, output the value of count
C. Start a counter at 1. Call getChildTags(). If it returns null, output the value of the counter.      Otherwise, increment counter and continue from where getChildTags() is called. Skip      processing of the body.
D. If the tag has a body, invoke the fragment for that body. Otherwise, start a counter at 1. Call      getParent(). If it returns null, output the value of the counter. Otherwise, increment the counter      and continue from where getParent() is called.

单项选择题

A. JspWriter w = pageContext.getOut();w.print(“Company”);
B. JspWriter w = pageContext.getWriter();w.print(“Company”);
C. JspWriter w = new JspWriter(pageContext.getOut()); w.print(“Company”);
D. JspWriter w = new JspWriter (pageContext.getResponse()); w.print(“Company”);

单项选择题

A. new InputStream(“/WEB-INF/nyressrc.bin”);
B. ctx.getInputStream(“/WEB-INF/nyresrc.bin”);
C. ctx.getresourceAsStream(“/WEB-INF/nyresrc.bin”);
D. new InputStream(“/WEB-INF/nyresrc.bin”);
E. getClass().getResourceAsStream(“/WEB-INF/nyresrc.bin”);

多项选择题

A. HttpSession session = request.getSession();
B. HttpSession session = request.getSession(id);
C. HttpSession session = request.getSession(true);
D. HttpSession session = request.getSession(false);
E. HttpSession session = request.getSession(“jsessionid”)

单项选择题

A. The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs
B. The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirely
C. The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported
D. The developer must ass the string ?id= to the end of every URL to ensure that the conversion with the browser can continue.

单项选择题

A. public void valueUnbound(HttpSessionEvent ev){...}
B. public void sessionPassivated(HttpSessionEvent ev){...}
C. public void sessionDidActivate(HttpSessionEvent ev){...}
D. public void sessionWillPassivate(HttpSessionEvent ev){...}

多项选择题

A. A filter must implement the destroy method
B. A filter must implement the doFilter method
C. A servlet may have multiple filters associated with it
D. A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain  interface
E. A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
F. For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container

单项选择题

A. The attribute foo is placed in the application
B. A ServletContextListener registered for that servlet is notified
C. A ServletAttributeListener registered for that servlet is notified
D. An HttpSessionAttributeListener registered for that servlet is notified

赞题库

赞题库-搜题找答案

(已有500万+用户使用)


  • 历年真题

  • 章节练习

  • 每日一练

  • 高频考题

  • 错题收藏

  • 在线模考

  • 提分密卷

  • 模拟试题

无需下载 立即使用

版权所有©考试资料网(ppkao.com)All Rights Reserved