Javabeans or Cookies
Posted on 2006-07-23
I am mocking up a system with jsp pages and servlets (including Javabean classes) and SQL Server. I am following the 3 teir design pattern, using jsps for the interface, serlvets for processing, and javabeans to hold information during the user's session.
So far I have used a Javabean instance to set information about the user that has logged in, so that I can use that information throughout the user's session. For example, I can use the Javabean that has been set, to get the user's names, staff id, region and so forth. So it seems to me when I want to know who the user is, I just need to get those properties from the java bean.
Do I need to consider using cookies, or will the fact that I am using Javabeans (not enterprise Javabeans) suffice?