New AJAX Support
tag. Now you can include snippets of Stripes forms from other JSP pages in a larger form and refresh those areas with AJAX calls. With earlier versions, you had to use generic HTML controls to accomplish this task, sacrificing some of the power of the framework's data binding and conversion.
The following example shows how to set partial forms to true to allow your form snippets to be nested inside another Stripes form tag:
<stripes:form action="/action/User" partial="true">
<td><stripes:text name="contact.address" size="30" /></td>
<td><stripes:text name="contact.city" size="30" /></td>
<td><stripes:text name="contact.state" size="30" /></td>
<td><stripes:text name="contact.zip" size="30" /></td>
<td><stripes:text name="contact.phone" size="30" /></td>
|Author's Note: Check out Stripes Reload for a set of Stripes extensions that allow you to reload Stripes ActionBean classes without restarting your app server.|
Upgrading from Earlier Stripes Versions
Stripes 1.5 is the first Stripes release that's not completely backward compatible with earlier versions. Nevertheless, upgrading most Stripes applications to 1.5 is pretty easy:
- Drop the new stripes.jar into your application's lib directory.
- Update the commons-logging.jar that ships with Stripes 1.5.
You may need to make some further changes as well:
- If you used ActionResolver.UrlFilters or ActionResolver.PackageFilters to pinpoint the location of the ActionBeans in your web.xml, you'll need to update those settings to the ActionResolver.Packages.
- If you are using the commons-fileupload.jar, you should get the latest version at the Apache site.
- If you're using any custom extensions in your application, make sure that you now initialize them with the Extension.Packages parameter.
These changes will bring most existing Stripes applications up to speed with version 1.5, but you should still check out the upgrading.txt file that ships with this release for a full list of incompatibilities.
In addition to the enhancements discussed in this article, the Stripes framework continues to benefit from superb documentation and an active and helpful developer community.