单项选择题
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");
