找考题网-背景图
单项选择题

A.JspWriter w = pageContext.getOut();B.print( foo );C.J……

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");


热门试题