I have found a way to determine how to config application-web.xml:

Please set break point on the following code of the SpringObjectFactory.java
,which is contained in the xwork-2.1.2.jar,


public Object buildBean(String beanName, Map<String, Object> extraContext,
boolean injectInternal) throws Exception {
        Object o = null;
        try {
            o = appContext.getBean(beanName);
        } catch (NoSuchBeanDefinitionException e) {
            Class beanClazz = getClassInstance(beanName);
            o = buildBean(beanClazz, extraContext);
        }
        if (injectInternal) {
            injectInternalBeans(o);
        }
        return o;
 }

from the parameter *beanName*, you can know how to config
applicationContext-web.xml.



2009/5/14 Frans Thamura <fr...@meruvian.org>

> i am still learning the REST implementation :0
>
> still un familiar
>
> the class is less than the old one, but work :0
>
> F
>
> On Wed, May 13, 2009 at 11:21 PM, chen thomas <xproject.tho...@gmail.com>
> wrote:
> > Hi
> >
> > I'm a Struts 2 newbie .I want to integrate struts2 ,convention plugin and
> > spring.
> > how to do? anyone give me some advice?
> >
> > thanks a lot
> >
> > thomas
> >
>
>
>
> --
> --
> Frans Thamura
> Meruvian. Java and Enterprise OSS
>
> Mobile: +62 855 7888 699
> Blog & Profile: http://frans.thamura.info
>
> We provide services to migrate your apps to Java (web), in amazing
> fast and reliable.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to