A.JSP to Transfer Object B.Service Locator to JNDI C.Controller to request object D.Transfer Object to Entity Bean E.Controller to Business Delegate
单项选择题A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades performance of the application. Which design pattern provides a solution for this problem?()
A.Flyweight B.Transfer Object C.Service Locator D.Dispatcher View E.Business Delegate F.Model-View-Controller
多项选择题Whichthreearevalidvaluesforthebody-contentattributeofatagdirectiveinatagfile?()
A.EL B.JSP C.Empty D.Dynamic E.Scriptless F.Tagdependent
多项选择题Given: 6.<myTag:foo bar=’42’> 7.<%= processing %> 8.< myTag:foo> and a custom tag handler for foo which extends TagSupport. Which two are true about thetag handler referenced by foo?()
A.The doStartTag method is called once. B.The doAfterBody method is NOT called. C.The EVAL_PAGE constant is a valid return value for the doEndTag method. D.The SKIP_PAGE constant is a valid return value for the doStartTag method. E.The EVAL_BODY_BUFFERED constant is a valid return value for the doStartTag method.
单项选择题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");
多项选择题Click the Exhibit button. The h:highlight tag renders its body, highlighting an arbitrary number of words, each of which is passed asan attribute (word1, word2, ...). For example, a JSP page can invoke theh:highlight tag as follows: 11. 12. high medium low 13. Given that HighlightTag extends SimpleTagSupport,which three steps are necessary to implement the taghandler for the highlight tag?()
A.Add a doTag method B.Add a doStartTag method C.Add a getter and setter for the color attribute D.Create and implement a TagExtraInfo class E.Implement the DynamicAttributes interface F.Add a getter and setter for the word1 and word2 attributes