I think you need to post the relevant section from struts.xml so we can see
how you declare the action as well as your spring configuration files.

-D


Miguel-55 wrote:
> 
> Well, the question is if you are using Spring 1.x or 2.x and creating
> spring beans (using the spring plugin and in your struts.xml using the
> spring bean name instead of the full class name):
> If you are using the 1.x version, do as said by Piero Sartini
> (singleton="false") in your application-context.xml
> If you are using the 2.x version use scope="prototype" in your
> application-context.xml
> 
> If you are not using the spring plugin or using the spring object
> factory to autowire the beans (via the autowire by name or type of the
> spring plugin configured in struts.xml), you can allways create a
> preparable bean (implements Preparable) and in the prepare() method,
> clear what you need; or you can additionally use the
> ParamsPrepareParams stack to do more complicated stuff.
> 
> Si quieres ser más positivo, pierde un electrón
> Miguel Ruiz Velasco S.
> 
> 
> 
> On Sat, Jul 26, 2008 at 23:21, Piero Sartini <[EMAIL PROTECTED]>
> wrote:
>> Am Sonntag, 27. Juli 2008 06:04:46 schrieb Arun M:
>>> Yes , we are using spring and hibernate also along with struts.
>>> Could you suggest us, where to configure to resue the beans ??
>>
>> The spring plugin is described in detail at
>> http://struts.apache.org/2.x/docs/spring-plugin.html
>> I am not using spring and do not know it very well.
>>
>> If you do not create your action with struts2 but with Spring, try s.th.
>> like
>> <bean id="bar" class="com.my.BarAction" singleton="false"/>
>> oin your applicationContext.xml
>>
>>        Piero
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Data-Leakage-in-Struts-2-tp18669314p18673505.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to