Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring design question  RSS feed

K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!