Given: 5.public class MyTagHandler extends TagSupport { 6.public int doStartTag() throws JspException { 7.try { 8.// insert code here 9.} catch(Exception ex) { /* handle exception */ } 10.return super.doStartTag(); 11.}...42. } Which code snippet, inserted at line 8,causes the value foo to be output?()
- A、JspWriter w = pageContext.getOut();
- B、print("foo");
- C、JspWriter w = pageContext.getWriter();
- D、JspWriter w = new JspWriter(pageContext.getWriter()); . w.print("foo");
正确答案:A
答案解析:有
微信扫一扫手机做题