O'Reilly logo

RESTful Java Web Services by Jose Sandoval

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Struts 2 and the REST Plugin

In this chapter, we use the Struts 2 framework (version 2.1.6) together with the REST plugin to implement the web service we defined in Chapter 4, RESTful Web Services Design.

It's not necessary for you to be familiar with Struts 2. However, it would help, as this chapter is not an introduction to the Struts 2 framework. Nevertheless, we cover enough of the framework to allow you to begin coding RESTful web services immediately. For example, we cover how to fully configure Struts 2 and the plugin, we explain how to map URIs to Struts 2 action classes, and we study in detail how each HTTP request is serviced by the plugin.

Getting the tools

For this chapter we need the latest version of Struts 2, which includes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required