Chapter 10. Developing Struts Applicationswith Eclipse
In this chapter we’re going to take a look at using Eclipse to write Struts-based web applications. This is going to give us experience not only using Struts, but also creating large-scale web applications, including handling build dependencies (where one file needs to be built before another), avoiding deleting files in the output folders when doing a full build (deleting all files in the output folder is called “scrubbing,” which Eclipse does by default—and scrubbing a Struts application would delete needed files), organizing your source code files into a folder after the project has already been created, and other issues. We’re also going to take a look at a popular Struts plug-in, Easy Struts, to help create Struts applications in Eclipse.
Although we’re going to discuss Struts in overview here, we’ll assume that if you want to follow the programming in detail, you already have some experience with Struts—in this book, our focus is on Eclipse, not Struts.
Struts is built on Model-View-Controller (MVC) architecture that has become popular in servlet/JSP programming. The original servlet/JSP programming architecture (sometimes called Model 1) was somewhat ad-hoc, using servlets, JSPs, and beans in a way that was completely up to the programmer. Since that time, web applications have become more large-scale, and the MVC architecture (sometimes called Model 2) has been adopted. In MVC programming, the view (often ...
Get Eclipse now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.