Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Edit Checking JSP or Servlets

 
Roger Hunt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have worked with servlets but have only ready about JSP. If I display a screen and the user inputs some values do I do a validity check in JSP or do I do it in a servlet. This is a very general question.
 
Maky Chopra
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That really depends.. If you want to check if a certain form field has been filled, you could do it with a simple client-side javascript.. This is preferable as the server resources are not used. If you want to check for say, if the username entered is valid (agaist your database) then the servlet or jsp using beans is the way to go..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic