A. The init method on a filter is called the first time a servlet mapped to that filter is invoked
B. A filter defined for a servlet must always forward control to the next resource in the filter chain.
C. Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file
D. If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it
您可能感兴趣的试卷
你可能感兴趣的试题
A. A web application may override the web container’s implementation classes
B. A web application running in a J2EE product may override classes in the javax.* namespace
C. A web application class loader may NOT override any classes in the java.* and javax.* namespace
D. Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource
E. Resources in the WAR class directory or in any of the JAR files within the library directory cannot be accessed using the J2SE semantics of getResource
Within the web application deployment descriptor, which defines a valid JNDI environment entry()
A.A
B.B
C.C
D.D
A. /conf/web.xml
B. /WEB-INF/web.xml
C. /conf/server.xml
D. /META-INF/web.xml
E. /WEB-INF/rules.xml
F. /META-INF/server. Xml
Which two are true()
A. Line 13 is not valid for a servlet declaration
B. Line 14 is not valid for a servlet declaration
C. One instance of the servlet will be loaded at startup
D. Ten instance of the servlet will be loaded at start up
E. the servlet will be referenced by the name catalog in mappings
A. j_user and j_id
B. j_id and j_password
C. j_users and j_password
D. j_user and j_password
E. j_login and j_password
F. j_username and j_password
What else must the developer do to ensure that the intended security goal is achieved()?
A. Create a user called vip in the security realm
B. Define a group within the security realm and call it vip
C. Define a security-role named vip in the development descriptor
D. Declare a security-role-ref for vip in the deployment descriptor
A. HTTP Basic Authentication
B. Form Based Authentication
C. HTTP Digest Authentication
D. HTTPS Client Authentication
A. FORM
B. DIGEST
C. NORMAL
D. ENCRYPTED
E. CLIENT-CERT
Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()
A. ${vals.2 }
B. ${vals ["2"]}
C. ${vals.index }
D. ${vals[index]}
E. ${vals} [index]
F. ${vals.(vals.index)}
G. ${vals[vals[index-1]]}
A. Error
B. Exception
C. Throwable
D. Request error
E. Request exception
最新试题
Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()
A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()
Which three can be placed at line 23 to retrieve an existing HttpSession object?()
Which the two are valid and equivalent?()
A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()
What else must the developer do to ensure that the intended security goal is achieved()?
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()
Which the two are true regarding a web application class loader?()
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()
A JSP page, current.jsp, is created to display the current weather report. The weather report is contained in a weather.html page that is rewritten every five minutes. Which line, appearing in current.jsp, ensures that the most recent version of weather.html is included whenever current.jsp is referenced?()