webwork / docs / differences.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title>WebWork Documentation</title>
  <link type="text/css" href="main.css" rel="STYLESHEET"/>
</head>
<body>
  <div id="page-logo">
    <a href="index.html"><img src="logo-small.png" border="0"/></a>
  </div>
    <div class="snip-title">
	  <h1 class="snip-name">Differences between WebWork and WebWork 2
  
  </h1>
  </div>
<div id="snip-content" class="snip-content">

 <div class="snip-attachments"></div>
 
 This list will grow over time, and there are many more differences than this - I'm just scribbling them down here as I find them.
<ul class="star">
<li><a href="index.html">WebWork2</a> has more unit tests than <a href="http://wiki.opensymphony.com/space/WebWork">WebWork</a></li>
<li>WebWork2 depends on <a href="http://wiki.opensymphony.com/space/XWork">XWork</a> (a generic command pattern framework), whereas WebWork 1 was really two things in one package (the MVC framework and the generic command pattern framework).</li>
<li>Webwork2 uses <a href="http://wiki.opensymphony.com/space/OGNL">OGNL</a> for its expression language.</li>
<li>ActionSupport has moved from webwork.action.ActionSupport to com.opensymphony.xwork.ActionSupport</li>
<li>validation is no longer done in the Action (by default, you can do it there if you want to code it there). Check out the <a href="http://wiki.opensymphony.com/space/Xwork+Validation+Framework">Xwork Validation Framework</a>.</li>
<li><a href="http://wiki.opensymphony.com/space/Xwork+Interceptors">Xwork Interceptors</a> make it so that you don't have to have complicated inheritance hierarchies to achieve pre/post processing.</li>
<li>It has a nifty "2" at the end :-)</li>
<li>CommandDriven interface no longer exists - specify the method to execute in the action declaration in xwork.xml see <a href="http://wiki.opensymphony.com/space/Xwork+Configuration">Xwork Configuration</a></li>
</ul>
  </div>
</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.