单项选择题

The JSP developer wants a comment to be visible in the final output to the browser.
Which comment styleneeds to be used in a JSP page?()


A.<!-- this is a comment -->
B.<% // this is a comment %>
C.<%-- this is a comment --%>
D.<% /** this is a comment **/ %>


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题Which two are valid and equivalent?()

A.<%! int i; %>
B.<%= int i; %>
C.<jsp:expr>int i;</jsp:expr>
D.<jsp:scriptlet>int i;</jsp:scriptlet>
E.<jsp:declaration>int i;</jsp:declaration>

3.多项选择题Given that a scoped attribute cart exists only in a user’s session, which two,taken independently,ensurethe scoped attribute cart no longer exists?()

A.${cart = null}
B.<c:remove var="cart" />
C.<c:remove var="${cart}" />
D.<c:remove var="cart" scope="session" />
E.<c:remove scope="session">cart</c:remove>

4.多项选择题

Given in a single JSP page:
<%@ taglib prefix=’java’ uri=’myTags’ %>
<%@ taglib prefix=’JAVA’ uri=’moreTags’ %> 
Which two are true?()

A.The prefix ’java’ is reserved.
B.The URI ’myTags’ must be properly mapped to a TLD file by the web container.
C.A translation error occurs because the prefix is considered identical by the web container.
D.For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.

5.单项选择题Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()

A.javax.servlet.http.HttpSessionListener
B.javax.servlet.http.HttpSessionBindingListener
C.javax.servlet.http.HttpSessionAttributeListener
D.javax.servlet.http.HttpSessionActivationListener

8.多项选择题Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()

A.It can be invoked only from the doGet or doPost methods.
B.It can be used independently of the getRemoteUser method.
C.Can return "true" even when its argument is NOT defined as a valid role name in the deployment descriptor.
D.Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.

9.多项选择题Which two are required elements for the  element of a web applicationdeployment descriptor?()

A.<realm-name>
B.<url-pattern>
C.<description>
D.<web-resource-name>
E.<transport-guarantee>

10.单项选择题Which element of a web application deployment descriptor  element is required?()

A.<realm-name>
B.<auth-method>
C.<security-role>
D.<transport-guarantee>
E.<web-resource-collection>

最新试题

A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page.Which HTTP method will the browser use to retrieve such a partial response?()

题型:单项选择题

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 <title> tag that requires the page name tobe specified dynamically when the header is imported.Which JSP code snippet performs the import of theheader content?() 

题型:单项选择题

Click the ’Select and Place’ button.Place the events in the order they occur.

题型:问答题

You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35.Which two EL code snippets will return true for this condition? ()

题型:多项选择题

Click the ’Select and Place’ button.Place the events in the order they occur.

题型:问答题

Click the ’Select and Place’ button.Place the events in the order they occur.

题型:问答题

Click the 'Select and Place' button.Place the events in the order they occur.

题型:问答题

Which three are true about servlet filters?()

题型:多项选择题

In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()

题型:多项选择题

Click the Exhibit button.The attribute "name" has a value of "Foo,"What is the result if this tag handler’s tag is invoked?()

题型:单项选择题