-
Jan 7th, 2009, 11:54 PM
#1
Spring Controller behaviour
Hi,
If I store an object within a controller as its private member, for example i have a hibernate entity called Contact and I store List<Contact> contacts as a Controller's private member and the Controller's scope is prototype. Will the user get the same Contact everytime he refreshed ? or is it possible for a user met another Controller which has other user's Contact ?
-
Jan 8th, 2009, 02:38 AM
#2
You shouldn't keep state inside your Controller. Your Controller should be stateless.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules