The steps

This page is designed to help kick start the creation of a Struts 2.x web site. It is broken up into several sections so that teams wishing to include/exclude a particular condiment may easily do so. If I can work out a server environment, there will be accompanying reference implementations where you can test drive the different variations of web stacks. If you are like me, show-me-don't-tell-me is often what you are seeking.

Struts 2.1.8 - core

The following sample web application is about as simple as they come. It is a minimalist Struts 2 stack that displays a Message Of The Day (MOTD).

Required jars
commons-fileupload-1.2.1
commons-io-1.3.2
freemarker-2.3.15
ognl-2.7.3
struts2-core-2.1.8
xwork-core-2.1.6


web.xml

xml version="1.0" encoding="UTF-8"?>

<web-app id="core" version="2.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">

<display-name>Struts Blankdisplay-name>

<filter>

<filter-name>struts2filter-name>

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterfilter-class>

filter>

<filter-mapping>

<filter-name>struts2filter-name>

<url-pattern>/*url-pattern>

filter-mapping>

<welcome-file-list>

<welcome-file>index.htmlwelcome-file>

welcome-file-list>

web-app>