You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Don Brown <mr...@twdata.org> on 2007/09/03 09:28:23 UTC

[s2] Painless migration with WebWork 2 plugin

I've completed a spike on a Struts 2 plugin for WebWork 2, providing a
drop-in replacement with no code or configuration file changes.  So
far, I've only tested it with simple Spring-based applications, so I'm
sure there are more areas it will need to wrap, but so far, you just
drop in Struts 2 with this plugin to replace WebWork 2.

Since we changed packages for XWork 2, this was actually pretty easy.
In the plugin, I extended relevant interfaces and classes like so:

package com.opensymphony.xwork;
public interface Action extends com.opensymphony.xwork2.Action {}

The plugin then
 * provides a com.opensymphony.webwork.dispatcher.FilterDispatcher class
 * adds support for xwork.xml files (stubbing webwork-default.xml correctly)
 * translates webwork.properties files
 * provides the tags with expected URI and prefix (JSP, Freemarker,
and Velocity).

I hope to try the plugin on more advanced WebWork 2 applications
(Atlassian, my employer, has a couple), so I'm hopeful it can save us
a good amount of work.

http://cwiki.apache.org/S2PLUGINS/webwork2-plugin.html

Don

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] Painless migration with WebWork 2 plugin

Posted by Tom Schneider <sc...@gmail.com>.
Nice work Don!

I attempted this a while back, but ran into some issues that I couldn't 
reconcile.  I'll definitely be trying this on our app.
Tom

Don Brown wrote:
> I've completed a spike on a Struts 2 plugin for WebWork 2, providing a
> drop-in replacement with no code or configuration file changes.  So
> far, I've only tested it with simple Spring-based applications, so I'm
> sure there are more areas it will need to wrap, but so far, you just
> drop in Struts 2 with this plugin to replace WebWork 2.
>
> Since we changed packages for XWork 2, this was actually pretty easy.
> In the plugin, I extended relevant interfaces and classes like so:
>
> package com.opensymphony.xwork;
> public interface Action extends com.opensymphony.xwork2.Action {}
>
> The plugin then
>  * provides a com.opensymphony.webwork.dispatcher.FilterDispatcher class
>  * adds support for xwork.xml files (stubbing webwork-default.xml correctly)
>  * translates webwork.properties files
>  * provides the tags with expected URI and prefix (JSP, Freemarker,
> and Velocity).
>
> I hope to try the plugin on more advanced WebWork 2 applications
> (Atlassian, my employer, has a couple), so I'm hopeful it can save us
> a good amount of work.
>
> http://cwiki.apache.org/S2PLUGINS/webwork2-plugin.html
>
> Don
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org