I dont know if you've done this already but could you attach this code to jira or the wiki just in case someone needs it its alot easier to get

boxed wrote:

Nils Hartmann wrote:

Hi,

I'm currently migrating a WW1 application to XW1/WW2.

I noticed the following points not mentioned in the "Webwork 2 Migration
Guide" (http://wiki.opensymphony.com/space/WebWork+2+Migration+Guide);
maybe some of these points are interesting for other who want to migrate too.


It would be nice if some of you could comment these points, at least where
you think I'm running into wrong direction...


This all sounds like the stuff I ran into a few months ago. I pointed it out to the list, seems no one has done anything about it. I have attached the classes I wrote for backwards compatibility. They are in no way complete, and will only help a small part in migration, but it's a start.

Anders Hovmöller
[EMAIL PROTECTED]


------------------------------------------------------------------------


<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd";>

<xwork>
    <package name="default">
        <result-types>
            <result-type name="dispatcher" 
class="com.opensymphony.webwork.dispatcher.ServletDispatcherResult"/>
            <result-type name="redirect" 
class="com.opensymphony.webwork.dispatcher.ServletRedirectResult"/>
            <result-type name="velocity" 
class="com.opensymphony.webwork.dispatcher.VelocityResult"/>
            <result-type name="chain" 
class="com.opensymphony.xwork.ActionChainResult"/>
        </result-types>

        <interceptors>
            <interceptor name="timer" 
class="com.opensymphony.xwork.interceptor.TimerInterceptor"/>
            <interceptor name="logger" 
class="com.opensymphony.xwork.interceptor.LoggingInterceptor"/>
            <interceptor name="chain" 
class="com.opensymphony.xwork.interceptor.ChainingInterceptor"/>
            <interceptor name="static-params" 
class="com.opensymphony.xwork.interceptor.StaticParametersInterceptor"/>
            <interceptor name="params" 
class="com.opensymphony.xwork.interceptor.ParametersInterceptor"/>
            <interceptor name="component" 
class="com.opensymphony.xwork.interceptor.component.ComponentInterceptor"/>
            <interceptor name="token" 
class="com.opensymphony.webwork.interceptor.TokenInterceptor"/>
            <interceptor name="token-session" 
class="com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor"/>
            <interceptor-stack name="defaultStack">
                <interceptor-ref name="timer"/>
                <interceptor-ref name="logger"/>
                <interceptor-ref name="component"/>
<!--                <interceptor-ref name="static-params"/>-->
                <interceptor-ref name="params"/>
            </interceptor-stack>
        </interceptors>

        <action name="exception" 
class="com.opensymphony.webwork.example.ExceptionAction">
            <interceptor-ref name="defaultStack"/>
        </action>
    </package>
</xwork>


------------------------------------------------------------------------


<components>

    <!--
    <component>
        <scope>session</scope>
        <class>com.opensymphony.webwork.example.counter.Counter</class>
        <enabler>com.opensymphony.webwork.example.counter.CounterAware</enabler>
    </component>
                -->

</components>





------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to