Re: STRUTS2 and Spring2

2008-01-19 Thread Dave Newton
--- Niral Trivedi <[EMAIL PROTECTED]> wrote: > I have looked up api and spring doc for both the listeners. But I was > trying > to say, if I add RequestContextListener then Struts2 plugin gives error > saying that You have to add ContextLoaderListener. And if I add > ContextLoaderListener, spring g

Re: STRUTS2 and Spring2

2008-01-19 Thread Niral Trivedi
Hi Dave, I have looked up api and spring doc for both the listeners. But I was trying to say, if I add RequestContextListener then Struts2 plugin gives error saying that You have to add ContextLoaderListener. And if I add ContextLoaderListener, spring gives error saying add RequestContextListener.

Re: Struts2 and Spring2 with session scoped beans

2008-01-19 Thread Dave Newton
See my reply to your first message. d. --- Niral Trivedi <[EMAIL PROTECTED]> wrote: > Hi All, > > We've are trying to use Struts2 with Spring2 on Webspher 6.1 and JDK 1.5. > Basically we are trying to use session scoped beans from Spring > applicationContext in to Struts2 using Spring DI. but r

Re: STRUTS2 and Spring2

2008-01-19 Thread Dave Newton
--- Niral Trivedi <[EMAIL PROTECTED]> wrote: > We are trying to have Spring manage all the value objects and action > objects. And so followed steps in Struts document to add struts2-spring > plugin jar and made necessary changes but getting errors when try to create > a bean in session scope. Foll

Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-23 Thread Peder Larsen
, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: Hi Peder, This looks ok for me, try by adding "struts.objectFactory = spring" into struts.properties file and see Thanks, Nuwan. - Original Message - From: "Peder Larsen" <[EMAIL PROTECTED]> To: "St

Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Nuwan Chandrasoma
ecember 23, 2006 3:31 AM Subject: Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work. Ok my config is: applicationContext.xml, http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; x

Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Peder Larsen
Ok my config is: applicationContext.xml, http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:aop="http://www.springframework.org/schema/aop"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springf

Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Nuwan Chandrasoma
e - From: "Peder Larsen" <[EMAIL PROTECTED]> To: Sent: Saturday, December 23, 2006 1:22 AM Subject: Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work. Ok, I think it would be better if some helpful soul which has successfully used strut

Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Wendy Smoak
On 12/22/06, Peder Larsen <[EMAIL PROTECTED]> wrote: I've been trying for some time now to get my basic struts2 test up and running. The problem i have is that i need to inject one UserInfo pr session into my FooAction. I want to use spring2 for this since it has better "scope" support than spri

Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Peder Larsen
Ok, I think it would be better if some helpful soul which has successfully used struts2 with spring2 to simply add their struts.xml, applicationContext.xmland maybe also the pom.xml for the project here so i can have a look at it. Also maybe if you have the time shorten down the XMLs to only the