The previous article shows you how to configure a basic Struts 2 project in Maven.
Struts 2 – Setup a Struts 2 Web Application in Maven
Now, i continue the Struts 2 tutorial and build the first set of model, view and controller.
1. Create the MessageStore model Continue reading Struts 2 – Model View Controller in Struts 2
I follow the Struts 2 tutorial and setup a simple Struts 2 application.
Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application
I used the struts2-core version 2.2.1 and also added a maven-jetty-plugin for running the web application. But when i run mvn jetty:run, the following error is found.
java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!
It is found that in struts2-core version 2.2.1, the Javassist dependency was excluded in OGNL. So i have to add this dependency in the pom.xml by myself.
So here comes to the project details. Continue reading Struts 2 – Setup a Struts 2 Web Application in Maven