Versions Compared

Key

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

...

Before buliding the application itself, we need to add some required jar files to the build classpath and the WEB-INF/lib folder. Firstly, create the WEB-INF/lib folder and download the WebWork 2.2.1 distribution and unzip it to your local harddrive. Locate the jar files shown in the screenshot and and put them in the newly created WEB-INF/lib folder. Select all the jar files, and right click and select "Build Path -> Add to Build Path". Now your local project should look similar to the screenshot.

 

Note

If there are jar files here that aren't included in the webwork distribution you have downloaded, you can safely assume that they are not needed.

portlet.xml
Anchor
portlet.xml
portlet.xml

...

Note

If you're using version 2.2.1 of WebWork, include the file webwork-default.xml instead.

 
 

Some important things to notice are that we create a package with namespace view, and our package extends the webwork-portlet-default package. The webwork-portlet-default package contains some special result types needed to run WebWork/XWork in a portlet container.

...