Integrate stecks with Struts (1)
1. Put the JAR file of strecks in the/WEB-INF/lib directory.
Http://strecks.sourceforge.net//doc-setup.php
2. Configure controller in struts-config.xml
<Controller
Processorclass = "org. strecks. Controller. controllerrequestprocessor"
Contenttype = "text/html; charset = UTF-8" inputforward = "true"
Nocache = "true"/>
If tiles is used, another controller for tiles is used.
It does not affect the original struts action.
3. You can also configure the interceptor of strecks.
Put strecks. properties under/WEB-INF/classes.
Form. wrapper. impl = org. strecks. Form. handler. sessionerrorformhandler
Before. interceptor.1 = org. strecks. Interceptor. actionlogginginterceptor
Before. interceptor.2 = org. strecks. Interceptor. redirectbeforeinterceptor
After. interceptor.2 = org. strecks. Interceptor. actionlogginginterceptor
4. Now you can refactor your original struts action or create a new action.
Here is an example on the stecks Website: http://strecks.sourceforge.net/doc-actions.php
To be continued...