wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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?


With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Spring design question
Similar Threads
how to preserve the NTLM authentication
Error connecting to Oracle database during Jboss startup
how to display errors in servlet
Form-Based Login
Help with this code!