Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The example code for this tutorial, Struts2_Annotations_Ant or Struts2_Annotations_Mvnannotations, is available on Google Code - httpfor checkout at https://codesvn.google.com/p/struts2-examples/downloads/listImage Removed. After downloading and unzipping the file, you'll have a folder named Struts2_Annotations_Ant (or Struts2_Annotations_Mvn). In that folder will be a README.txt file with instructions on now to build and run the example application.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/Image Added

Introduction

In our previous tutorials we've been using an XML file (struts.xml) to configure our applications. The XML file wires up the action names (register), with ActionSupport classes (RegisterAction.java), and with the result to render back to the browser (register.jsp). Struts 2 provides an alternative to using XML to configure your application by using standard naming conventions and annotations for your action names, ActionSupport classes, and results.

...