This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Prototype V/S Request Scope in Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Prototype V/S Request Scope in Spring" Watch "Prototype V/S Request Scope in Spring" New topic
Author

Prototype V/S Request Scope in Spring

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 140
The prototype scope creates a new object whenever there is a new request for that object. And, request scope also creates a new object for each request for that particular request. So, what is the actual difference between the two scopes and can't we achieve the similar functionality using prototype request only??
Ayan mallick
Ranch Hand

Joined: Nov 17, 2012
Posts: 44
check out this.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Prototype V/S Request Scope in Spring
 
Similar Threads
Prototyping vs. singleton
Request scope vs Prototype scope
What is the difference between prototype and request scope?
Making a bean as Stateful using spring
Bean Problem