aspose file tools*
The moose likes Spring and the fly likes request-scoped beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "request-scoped beans" Watch "request-scoped beans" New topic
Author

request-scoped beans

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
Hello:

As will become evident, I am fairly new to Spring. My question is about request-scoped beans. We are using Spring together with Struts 2, that is to say, we are not using any Spring web technology like MVC or Web Flow. WE are using the spring plug-in which comes with Struts. Will the request scope on beans still be respected/recognized? Even if we're allowing Spring to create Struts objects?

Thanks.

eric.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

John Eric Hamacher wrote:Hello:

As will become evident, I am fairly new to Spring. My question is about request-scoped beans. We are using Spring together with Struts 2, that is to say, we are not using any Spring web technology like MVC or Web Flow. WE are using the spring plug-in which comes with Struts. Will the request scope on beans still be respected/recognized? Even if we're allowing Spring to create Struts objects?

Thanks.

eric.


Yes it will be used. The Request scope requirement is only that you are in a web environment, using Spring MVC, Struts, Straight Servlets all work.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
Good news, thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request-scoped beans