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 any scope for the action 
classes, I am able to call my non-execute methods action classes. But I need 
the action classes to be scope=prototype otherwise they are not thread safe. If 
I configure scope=prototype, the non-execute methods fail to get called when I 
try to execute a action from the screen. For now I am forced to create seperate 
action classes for each action on the presentation layer and make them 
scope=prototype.

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.

The versions I am using are as follows
Struts 2.1.6
Spring 2.5.6
Hibernate 3.2

Thanks a lot.

Anand

Reply via email to