If you want to implement filter-like functionality but want to have full access to the Spring context's life cycle machinery and dependency injection, use the DelegatingFilterProxy class.
Question 5. To enable Spring security for web flows.
SecurityFlowExecutionListener
SecurityFlowExecution
FlowSecurity
SecurityFlowListener
Explanation:-
Answer: Option A. -> SecurityFlowExecutionListener
You have to register the flow execution listener SecurityFlowExecutionListener in the flow executor to enable Spring Security for web flow.
Question 6. To load root application context at the start up.
ContextListener
ContextLoader
ContextLoaderListener
ContextEventListener
Explanation:-
Answer: Option C. -> ContextLoaderListener
In the web deployment descriptor (i.e., web.xml), you register ContextLoaderListener to load the root application context at startup.
Question 7. Connection of database with Apache derby server requires.
Derby client.jar
Spring JDBC support
None of the mentioned
All of the mentioned
Explanation:-
Answer: Option D. -> All of the mentioned
To connect to a database in the Apache Derby server, you need the Derby client .jars, as well as the Spring JDBC support.
Question 8. ActionSupport class provides a method to access spring's application context.
getWebApplicationContext()
getWebApplication()
getApplicationContext()
contextEventListener()
Explanation:-
Answer: Option A. -> getWebApplicationContext()
Spring provides the ActionSupport class, a subclass of the Action base class that has a convenient getWebApplicationContext() method for you to access Spring's application context.
Question 9. Attribute used to specify custom access decision manager.
access-decision-manager-ref
access-decision-ref
access-decision
none of the mentioned
Explanation:-
Answer: Option A. -> access-decision-manager-ref
If you would like to use a custom access decision manager, you can specify it in the access-decision-manager-ref.
Question 10. Remember-me support can be configured by:-
remember-me
remember-me
remember-basic
none of the mentioned
Explanation:-
Answer: Option B. -> remember-me
Remember-me support can be configured via the remember-me element.