2016-03-24 21:41 GMT+01:00 José Antonio Delgado Trujillo <jadt...@gmail.com>:
>>
>> Can you share your config?
>
> My applicationContext.xml is…
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="
>             http://www.springframework.org/schema/beans
>             http://www.springframework.org/schema/beans/spring-beans.xsd";>
>
>         <bean id="editService" 
> class="pfc.struts2.form.service.EditServiceInMemory" />
>         <bean id="editAction" class="pfc.struts2.form.action.EditAction">

You must define also scope="prototype" as Struts actions cannot be singletons

>                 <property name="editService" ref="editService" />
>         </bean>
> </beans>
>
> The listener in the web.xml
> <listener>
>         
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>  </listener>
>
> The dependency in the POM …
>  <dependency>
>         <groupId>org.apache.struts</groupId>
>         <artifactId>struts2-spring-plugin</artifactId>
>         <version>2.3.24</version>
> </dependency>
>
> Could it be a conflict whit the version of struts2? (in this case i used 
> 2.3.28 that it was the default of the arquetype blank).

You shouldn't mix Struts versions.

Can you share struts.xml as well?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to