Struts2: Convention Plugin Simple Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

This post explains how to use struts2 convention plugin to eliminate xml based configuration in struts.

Statistics

  • Total Hits - 27387

  • Total Votes - 155 votes

  • Vote Up - 67 votes

  • Vote Down - 88 votes

  • Domain - www.programming-free.com

  • Category - JAVA/Struts

  • Submitted By - PRIYADARSHINI

  • Submitted on - 2013-12-19 00:40:00

Description

Apache Struts2 is a java based web framework that encourages developers to adopt to Model-View-Controller architecture. The goal of Struts is to separate the application logic from the user interface that will help improve maintenance of the project. The web developer is responsible for creating the model (core logic) and for creating a central configuration file (struts.xml) that will bind together the model, view and the controller. One can also go for convention based programming and name the action classes (controllers) and the views (JSP) according to the standard conventions so that the program will automatically recognize the right one to call, instead of using the traditional configuration file (struts.xml) approach. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements