Struts Model Components
Here is the UserView bean
class used to store user information during the session.
- An object of class UserView is an example of a Data Transfer
Object (DTO)
- A DTO is a coarse-grained view of a remote object - there might be five
security tables with foreign keys at the DBMS end, but the web tier just
sees the UserView
- By relying on a SecurityService object that gives it a
UserView, the LoginAction class is separated from the
business logic
- If the business logic is ever changed (for example, the database tables
are rearranged) the LoginAction class will not be affected