Warning |
---|
DEPRECATED: moved to http://struts.apache.org/getting-started/ |
Info |
---|
The framework documentation is written for active web developers and assumes a working knowledge about how Java web applications are built. For more about the underlying nuts and bolts, see the Key Technologies Primer. |
excerpt
Several tutorials are available to help you get started with the framework, from all-purpose "soup to nuts" tutorials to specialty tutorials on portlets and database access.
Once you download a distribution, be sure to try the QuickStart feature.
Soup to Nuts
Database
- WebWork CRUD Made Easy (Philip Luppens)
- CRUD with WebWork, Spring, and JSTL (Larry Meador)
Speciality
Primers
- Bootstrap - few simple steps how to start with Struts 2
- Struts 2 + Spring 2 + JPA + AJAX
- Struts 2 / Hibernate Tutorial
- Struts 2, Spring 3, JPA 2, Maven Example
Speciality
- Extending an Application with Custom Plugins
- CRUD Made Easy
- Creating java web applications with AngularJS and Struts2
- 4 Easy Steps to create a Java based Web Application with Struts2 and jQuery
- JasperReports Tutorial
- Portlet Tutorial
...
...
Feature List
Core
- Pluggable framework architecture that allows request lifecycles to be customized for each action.
- Flexible validation framework that allows validation rules to be decoupled from action code.
- Hierarchical approach to internationalization that simplifies localizing applications.
- Automatic type conversion that transparently maps values from HTTP to native Java data objects, solving one of the most tedious efforts when creating web applications.
- Integrated dependency injection engine that manages component lifecycle and dependencies. (By default, the framework utilizes Spring for dependency injection.)
- Modular configuration files that use packages and namespaces to simplify managing large projects with hundreds of actions.
- Java 5 annotations that reduce configuration overhead. (Java 1.4 is the minimum platform.)
View
- Reusable user interface tags that allow for easy component-oriented development using themes and templates. Bundled tags ranges from simple text fields to advanced tags like date pickers and tree views.
- JSTL-compatible expression language (OGNL) that exposes properties on multiple objects as if they were a single JavaBean.
- Pluggable Result Types that support multiple view technologies, including JSP, FreeMarker, Velocity, PDF, and JasperReports.
- Optional AJAX theme that simplifes creating interactive web applications.
- Optional Interceptor plugins that can execute long-running queries in the background, prevent multiple form submissions, or handle custom security schemes.
Other
...
Examples
Several example applications are bundled with the framework, as ready-to-deploy WARs.
Blank | An "empty" application that you can use as the starting point for your own projects. |
MailReader | A simple application that demonstrates best practices. |
Portlet | An application demonstrating portlet support |
Showcase | A sampling of common (and not so common) use cases. |
Simple examples and links to "powered by" sites |
For the complete source code to the applications, see the source code distribution.
Errata?
Tip |
---|
To suggest a change or a correction to any part of the documentation, log in and leave a comment on the appropriate page. We are always looking for help with the documentation! |
...