Struts 2 Hello World Example (XML Version)
Security Warning: The dependency versions in this tutorial (struts2-core-2.2.1, ognl-3.0, javassist-3.7.ga, freemarker-2.3.16, commons-io-1.3.2, xwork-core-2.2.1) are from 2010–2011 and contain known critical vulnerabilities including remote code execution (RCE) exploits. Do not use these JARs in any production application. For current Struts 2, use the latest release from struts.apache.org and manage dependencies via Maven. This post is preserved for historical reference only. In this tutorial, we will be creating a simple “Hello world” program using Struts 2. For this tutorial we will be using Eclipse, Struts 2. Struts 2 allows you to define configuration either by using traditional Struts 1 like XML way or by using annotations. In this tutorial we will be following traditional XML way. Let’s move ahead!