Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt  RSS feed

 
Ramakrishnan thiyagarajan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
In mvc how would the controller servelt validate the username and password.bcos then only it directs the reuest to another page.pls clarify my doubt.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no doubt...

The controller does nothing (or should do nothing) but to marshall requests to their proper destinations.
So your login request should be marshalled to a resource (servlet probably) that does the actual password check and which then sends it back to the controller with a new destination (which could be dependent on the actual user, maybe).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!