The title of this section is a bit misleading. It seems to imply that there might be a single best way of using Struts with a Web Service. This isn’t the case. There are many options that could make sense based on your specific environment and application. However, that being said, this chapter provides a specific recommended approach.
This recommended approach is illustrated in the sample application presented in the next section. But first, here are some key points to the design:
The Web Service is called from the Action class. The need to manage Exceptions and to coordinate different views based on the Web Service response makes the Action class the appropriate place for calling the Web Service.
A value ...