Spring Velocity integration

Print the objectives

  Take a beta test

This exam covers a topic of the integration the Spring framework with the Velocity templating engine. The latter fusion may be used to provide a view layer alternative to the JSP in the Spring-based web applications. Please note that Velocity and VTL itselvs are covered by the separated exams. We focus here only on the integration issues.

References:

  • http://www.springframework.org/docs/reference/view.html
  • Professional Java Development with the Spring Framework, Wiley, 2006
  • Spring in Action, Manning, 2005
  Released  Beta  Frozen  

Binding

 
 

Configuration  1 question

  • Show how to expose Spring binding macros for the templates by the proper configuration of the ViewResolver.
  • Understand how XHTML compliance can be enabled/disabled.
  • Demonstrate how to enable/disable HTML escaping.
0 1 35

Input macros  3 questions

  • Recognize the usage of the Spring form binding macros, such as:
    • formInput
    • formTextArea
    • formCheckboxes
    • formRadioButtons
0 1 0

Other macros  1 question

  • Know the purpose of the other macros available in Spring, such as:
    • errors
    • message
    • messageText
    • url
0 0 0

Simple binding  1 question

  • Identify the purpose of the bind/bindEscaped macros.
  • Demonstrate how to use expression and value of the status variable.
0 0 0

Resolving view  5 questions

  • Identify the purpose of the VelocityViewResolver.
  • Know how to set prefix/sufix of the resolved templates.
  • Demonstrate how to inject Velocity Tools into a context.
  • Identify how to forward Velocity context data into a HTTP request or session objects.
  • Understand how to use Velocity with more than one view technology in a single web application.
0 6 39

VelocityConfigurer  2 questions

  • Understand how velocity engine can be configured in the Spring wiring configuration file.
  • Demonstrate how to set and load Velocity engine's key/value configuration properties.
  • Please note that detailed information concerning all the possible Velocity engine options are beyond the scope of this exam - we focus only on the integration of the configuration process itself.
0 4 4

Exam information

  • 19 minutes
  • 13 questions (90)
  • 80% required
  • +3 √
  • - 8  points
  • 15 day delay
  • status: under construction