Test Series - spring

Test Number 18/20

Q: Spring supports web flows by:
A. Java
B. XML
C. All of the mentioned
D. None of the mentioned
Solution: Spring supports defining a flow either by java or XML.
Q: Stated related to Spring Web flows.
A. view
B. action
C. decision
D. all of the mentioned
Solution: Spring Web Flow builds in several state types, including view state, action state, decision state, subflow state, and end state.
Q: Required dependencies to manage web UI flows.
A. spring web flow distribution.
B. org.springframework.webflow
C. all of the mentioned
D. none of the mentioned
Solution: To manage your web UI flows with Spring Web Flow, you need the Spring Web Flow distribution (e.g.,v2.0.8) on your CLASSPATH.
Q: Spring Web flow supports.
A. Unified EL
B. Object-Graph Navigation Language (OGNL)
C. All of the mentioned
D. None of the mentioned
Solution: Spring Web Flow supports using Unified EL (used in JSF 1.2 and JSP 2.1) and Object-Graph Navigation Language (OGNL), which is used in Tapestry, WebWork, and other frameworks, as its expression language.
Q: To create URL path mappings from the ids of registered flow definitions.
A. FlowHandlerMapping
B. FlowHandler
C. FlowHandlerMappingRequest
D. None of the mentioned
Solution: The FlowHandlerMapping follows a convention to create URL path mappings from the ids of registered flow definitions.
Q: XML Based flow definitions can be validated by:-
A. Spring Web Flow XSD
B. Spring IDE
C. SpringSource Tool Suite
D. All of the mentioned
Solution: Spring Web Flow offers an XML–based flow definition language that can be validated by Spring Web Flow XSD and supported by Spring IDE or SpringSource Tool Suite (STS).
Q: Element to trigger an action for view module.
A. on-render
B. on-action
C. on-trigger
D. none of the mentioned
Solution: You can use the on-render element to trigger an action for a view state before its view renders.
Q: Variable to trigger the flow execution.
A. ${flowExecutionUrl}
B. ${exec.flow}
C. ${flowExecutionUrl.match}
D. none of the mentioned
Solution: You have to start the URLs with the variable ${flowExecutionUrl} to trigger a flow execution. This variable will be evaluated by Spring Web Flow at runtime.
Q: Servers which listen on port 8080.
A. Apache Tomcat 6.0
B. Jetty
C. None of the mentioned
D. All of the mentioned
Solution: By default, Tomcat and Jetty (and the Maven Jetty plugin configured for this code) listen on port 8080.
Q: Interface which is used to persist instances sessions.
A. serializable
B. file.io
C. io.file.*
D. none of the mentioned
Solution: Implement the Serializable interface, as its instances may need to be persisted in sessions.

You Have Score    /10