webwork / docs / warstructure.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en_US" xml:lang="en_US">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title>WebWork Documentation</title>
  <link type="text/css" href="main.css" rel="STYLESHEET"/>
  <div id="page-logo">
    <a href="index.html"><img src="logo-small.png" border="0"/></a>
    <div class="snip-title">
	  <h1 class="snip-name">WebWork 2 WAR Structure
<div id="snip-content" class="snip-content">

 <div class="snip-attachments"></div>
 <h3 class="heading-1">Example Directory Structure
</h3><p class="paragraph"/>The following is one example of a web application directory structure that can be used to configure WebWork 2 in your application. 
<ul class="star">
</ul><p class="paragraph"/>For more information about the web.xml file, see <a href="webconfig.html">Configuring web.xml</a>.<p class="paragraph"/>WebWork 2 has a number of required and optional libraries that must be included in the WEB-INF/lib folder for certain features of the framework to work correctly.<p class="paragraph"/>Required libraries:
<ul class="star">
<li>commons-logging.jar (this is the logging library used in webwork2)</li>
<li>ognl-2.5.1.jar (this is the OGNL library used for webwork2's expression language)</li>
<li>oscore-2.2.1.jar (contains core functionality that is reused in webwork2)</li>
</ul><p class="paragraph"/>Optional libraries:
<ul class="star">
<li>cos-multipart.jar (only required if you need cos multipart support)</li>
<li>pell-multipart.jar (only required if you need pell multipart support)</li>
<li>velocity-dep-1.3.jar (only required if you use the webwork2 tag libraries)</li>
</ul><p class="paragraph"/>Note that commons-logging will pick a specific log implementation only if it finds the correspondent classes on the classpath. So, if you want commons-logging to use <span class="nobr"><img src="" alt="&gt;&gt;" border="0"/><a href="">Log4J</a></span> as the actual log implementation, you need to put the log4j.jar file in the WEB-INF/lib folder as well.