File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Spring design question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring design question" Watch "Spring design question" New topic

Spring design question

K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Lets say for simplicity I want to authenticate a user based on username and a password.
So I have a logon.jsp which mapss to LogonFormController.

In the controller bean mapping I have following properties:

Is this the correct mapping, as in design point of view?
The logon form contains only username and password field. Should this map directly to a domain class? The database has a table having fields username and password.And Person class conatins name,address,username.This is my only domain class.Is there any need for a different domain class?

Also, if I want to authenticate user based on username,password from database, should I do it in Validator class for the form?


I agree. Here's the link:
subject: Spring design question
It's not a secret anymore!