You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import.
Which JSP standard action canaccomplish this goal?()
A.<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
B.<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
C.<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
D.<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />
您可能感興趣的試卷
你可能感興趣的試題
A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page.
Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()
A.id
B.name
C.bean
D.type
E.scope
A.<jsp:import file=’foo.jsp’ />
B.<jsp:import page=’foo.jsp’ />
C.<jsp:include page=’foo.jsp’ />
D.<jsp:include file=’foo.jsp’ />
A.response.getWriter()
B.response.getOutputStream()
C.response.getOutputWriter()
D.response.getWriter().getOutputStream()
E.response.getWriter(Writer.OUTPUT_TEXT)
Given a header in an HTTP request:X-Retries:4
Which two retrieve the value of the header from a given HttpServletRequest request?()
A.Request.getHeader("X-Retries")
B.Request.getIntHeader("X-Retries")
C.Request.getRequestHeader("X-Retries")
D.Request.getHeaders("X-Retries").get(0)
E.Request.getRequestHeaders("X-Retries").get(0)
最新試題
Click the 'Select and Place' button.Place the events in the order they occur.
In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()
Given tutorial.jsp:2.EL Tutorial3.Example 14.5.Dear ${my:nickname(user)}6.Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()
Which three are true about servlet filters?()
Which two are valid and equivalent?()
A web application allows the HTML title banner to be set using a servlet context initialization parametercalled titleStr.Which two properly set the title in this scenario?()
Given a Filter class definition with this method:21.public void doFilter(ServletRequest request,22.ServletResponse response,23.FilterChain chain)24.throws ServletException, IOException {25.// insert code here26.}Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()
Click the ’Select and Place’ button.Place the events in the order they occur.
Given a web application in which the request parameter productID contains a product identifier.Which twoEL expressions evaluate the value of the productID?()
Click the 'Select and Place' button.Place the events in the order they occur.