Re: Struts2-Spring Integration Issue

2009-02-18 Thread Wes Wannemacher
ervice,DAO etc. and if I > can wire them up. > > Please let me know if you have better ideas. > > Thanks a Lot, > Anand > > > -Original Message- > From: Dale Newfield [mailto:d...@newfield.org] > Sent: Tuesday, February 17, 2009 7:08 PM > To: Struts Users M

RE: Struts2-Spring Integration Issue

2009-02-18 Thread Sundararaman, Anand
wire them up. Please let me know if you have better ideas. Thanks a Lot, Anand -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Tuesday, February 17, 2009 7:08 PM To: Struts Users Mailing List Subject: Re: Struts2-Spring Integration Issue Wes Wannemacher wrote

Re: Struts2-Spring Integration Issue

2009-02-17 Thread Dale Newfield
Wes Wannemacher wrote: I jumped into the thread late and didn't see your original problems. I tend to peruse for things I can help on, so I'm not sure if I have an answer for your original problem :( I wasn't the original poster. I don't think I ever saw the original message, so let's hope t

Re: Struts2-Spring Integration Issue

2009-02-17 Thread Wes Wannemacher
On Tuesday 17 February 2009 19:19:08 Dale Newfield wrote: > > > The interceptor depends on the SpringObjectFactory, so it is necessary to > > have the Spring plugin installed. > > Is it appropriate for struts to be distributed with an interceptor that > doesn't work without the plugin? Doesn't tha

Re: Struts2-Spring Integration Issue

2009-02-17 Thread Dale Newfield
Wes Wannemacher wrote: http://struts.apache.org/2.1.6/struts2- core/apidocs/com/opensymphony/xwork2/spring/interceptor/ActionAutowiringInterceptor.html It's a bit confusing, but it really depends on how you want autowiring to happen. I've been happily using the spring plugin which wires up my

Re: Struts2-Spring Integration Issue

2009-02-17 Thread Wes Wannemacher
On Tuesday 17 February 2009 15:03:20 Dale Newfield wrote: > Wes Wannemacher wrote: > > There is a Spring autowiring interceptor that will autowire services into > > your actions for you, even if you don't use Spring to instantiate the > > actions. > > OK, now I'm confused. What's the interaction b

Re: Struts2-Spring Integration Issue

2009-02-17 Thread Dale Newfield
Wes Wannemacher wrote: There is a Spring autowiring interceptor that will autowire services into your actions for you, even if you don't use Spring to instantiate the actions. OK, now I'm confused. What's the interaction between the "autowiring" interceptor and the spring plugin? If we're us

Re: Struts2-Spring Integration Issue

2009-02-16 Thread Wes Wannemacher
On Monday 16 February 2009 13:47:50 Sundararaman, Anand wrote: > The validation is fine as it works when I scope my actions as singleton in > the applicationContext.xml. Problem happens only when I scope them as > prototype. > > When you say that Struts will try to use Spring to create all framewor

RE: Struts2-Spring Integration Issue

2009-02-16 Thread Sundararaman, Anand
: Struts Users Mailing List Subject: Re: Struts2-Spring Integration Issue 2009/2/15 Sundararaman, Anand : > No it did not work with that change as well. > > Initially I was getting a "NoSuchMethodException" on the method activateUser > in the action class. Now after the change you s

Re: Struts2-Spring Integration Issue

2009-02-15 Thread Lukasz Lenart
2009/2/15 Sundararaman, Anand : > No it did not work with that change as well. > > Initially I was getting a "NoSuchMethodException" on the method activateUser > in the action class. Now after the change you suggested, it asked for an > "input" result type in the action class. If I give the "inpu

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
t type it just does not go to that method nor the execute method and comes back to the original screen with action errors displayed. From: Lukasz Lenart [lukasz.len...@googlemail.com] Sent: Saturday, February 14, 2009 10:39 AM To: Struts Users Mailing Li

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
No I did not try that. I will try that and let you know. Thanks for the help and time. From: Lukasz Lenart [lukasz.len...@googlemail.com] Sent: Saturday, February 14, 2009 10:39 AM To: Struts Users Mailing List Subject: Re: Struts2-Spring Integration

Re: Struts2-Spring Integration Issue

2009-02-14 Thread Lukasz Lenart
2009/2/14 Sundararaman, Anand : > > /jsp/user/useractivated.jsp > /jsp/user/login.jsp > > That's really strange, did you try to use method="doActivateUser" ? Regards -- Lukasz http://www.lenart.org.pl/ -

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
email.com] Sent: Saturday, February 14, 2009 10:01 AM To: Struts Users Mailing List Subject: Re: Struts2-Spring Integration Issue Could you copy-paste your struts.xml and Spring config regarding actions? Regards -- Lukasz http://www.lenart.org.pl/ ---

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
2009 10:01 AM To: Struts Users Mailing List Subject: Re: Struts2-Spring Integration Issue Could you copy-paste your struts.xml and Spring config regarding actions? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e

Re: Struts2-Spring Integration Issue

2009-02-14 Thread Lukasz Lenart
Could you copy-paste your struts.xml and Spring config regarding actions? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@strut

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
Hi Lukasz, I am not using AOP. Will it make any difference if I use the Spring-AOP? Thanks, Anand From: Lukasz Lenart [lukasz.len...@googlemail.com] Sent: Saturday, February 14, 2009 9:51 AM To: Struts Users Mailing List Subject: Re: Struts2-Spring

Re: Struts2-Spring Integration Issue

2009-02-14 Thread Lukasz Lenart
2009/2/14 Sundararaman, Anand : > It seems to me that I will never be able to use the Struts non-execute (do*) > methods, if I integrate with Spring. I need Spring Framework since it helps a > lot with hibernate calls. > > Would anyone be able to guide me, if I am missing something. Do you use A

Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
Hello, I am using Struts2-Spring-Hibernate in my web application. I have configured the Struts-Spring plugin to make the Spring framework load the action classes. I am facing a problem with the non-execute (do*) methods in my action classes. In my applicationcontext.xml, if I do not specify an