Announcement Announcement Module
Collapse
No announcement yet.
Spring Controller behaviour Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ?

  • #2
    You shouldn't keep state inside your Controller. Your Controller should be stateless.

    Comment

    Working...
    X