Introduction to the Struts Web Framework
This document takes you through the basics of using NetBeans IDE to develop web applications using the Struts web framework. Struts is an open source framework that extends the Java Servlet API and employs a Model, View, Controller (MVC) architecture. It enables you to create maintainable, extensible, and flexible web applications based on standard technologies, such as JSP pages, JavaBeans, resource bundles, and XML.
This tutorial teaches you how to build a simple MVC application that displays a login page and returns a success page upon submitting data that passes validation. You learn several basic features provided by Struts, as well as how these features are implemented using the IDE. Specifically, you use Struts tags in JSP pages, maintain user data with a Struts
ActionForm
bean, and implement forwarding logic using a StrutsAction
object. You are also shown how to implement simple validation to your application, including setting up warning message for a failed login attempt.
Excellent tutorial if you want a quick intro to Struts & NetBeans...