Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "Filenot found." An error page has been configured for this JSP page. Which option prevents the exceptionthrown by my:errorProne from invoking the error page mechanism, and outputs the message "File notfound" in the response?()
第1题:
在J2EE中,对于以下的include指令和include动作,书写正确的是()
第2题:
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()
第3题:
A user is attempting to access a website but is getting a ‘Page cannot be displayed’ error. The technician checks the IP address of the computer and sees that it has been assigned 169.254.10.70. Which of the following is the MOST likely cause?()
第4题:
第5题:
You are creating an error page that provides a user-friendly screen whenever a server exception occurs.You want to hide the stack trace, but you do want to provide the exception’s error message to the user sothe user can provide it to the customer service agent at your company. Which EL code snippet inserts thiserror message into the error page?()
第6题:
〈%@ page errorPage=true%〉
〈%@ page isErrorPage=true%〉
〈%@ page extends=javax.servlet.jsp.JspErrorPage%〉
〈%@ page info=error%〉
第7题:
<c:try catch=ex><my:errorProne /></c:try>${ex.message}
<c:catch var=ex><my:errorProne /></c:catch>${ex.message}
<c:try>. <my:errorProne />. </c:try>. <c:catch var=ex />. ${ex.message}
<c:try>. <my:errorProne />. <c:catch var=ex />. ${ex.message}. </c:try>
第8题:
Message: <b>${exception.message}</b>
Message: <b>${exception.errorMessage}</b>
Message: <b>${request.exception.message}</b>
Message: <b>${pageContext.exception.message}</b>
Message: <b>${request.exception.errorMessage}</b>
第9题:
<c:try catch=ex><my:errorProne /></c:try>${ex.message}
<c:catch var=ex><my:errorProne /></c:catch>${ex.message}
<c:try>. <my:errorProne />. </c:try>. <c:catch var=ex />. ${ex.message}
<c:try>. <my:errorProne />. <c:catch var=ex />. ${ex.message}. </c:try>
第10题:
A custom logo on the user interface page
A maximum timeout value of 600 minutes
A maximum time out value of 1200 minutes
A default Juniper Networks logo on the user interface page
第11题:
A
B
C
D
E
第12题:
<jsp:include page=http://localhost:/8080/my.jsp/>
<%@ include file=http://localhost:/8080/my.jsp/>
<jsp:include file=http://localhost:/8080/my.jsp/>
<%@ include page=http://localhost:/8080/my.jsp/>
第13题:
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
第14题:
Which three occur during JSP page translation?()
第15题:
You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the
第16题:
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()
第17题:
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>
第18题:
Tag files can only be accessed using a tagdir attribute.
The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.
Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.
The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.
第19题:
The jspInit method is called.
The JSP page implementation class is created.
The JSP page implementation class is compiled.
The JSP page is validated for syntatic correctness.
The associated tag files are validated for syntatic correctness.
第20题:
<%@ page errorPage=true %>
<%@ page info=error %>
<%@ page pageEndcoding=error %>
<%@ page isErrorPage=true %>
第21题:
The prefix ’java’ is reserved.
The URI ’myTags’ must be properly mapped to a TLD file by the web container.
A translation error occurs because the prefix is considered identical by the web container.
For the tag usage
第22题:
Id
Type
Name
Class
Yscope
第23题:
Id
Val
Name
Param
Value
Property