Chapter 5. Data transfer: OGNL and type conversion

This chapter covers

  • Transferring data
  • Working with OGNL
  • Using the built-in type converters
  • Customizing type conversion

Now that we’ve covered the action and interceptor components, you should have a good idea of how the major chunks of server-side logic execute in the Struts 2 framework. We’ve avoided poking our noses into the details of two of the more important tasks that the framework helps us achieve: data transfer and type conversion. We’ve been able to avoid thinking about these important tasks because the framework automates them so well. This’ll continue to be true for large portions of your development practice. However, if we give a small portion of our energy to learning how the ...

Get Struts 2 in Action now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.