This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring design question

K Aditi
Ranch Hand
Posts: 89
  • 0
  • 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?

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic