| Author |
Edit Checking JSP or Servlets
|
Roger Hunt
Greenhorn
Joined: Apr 24, 2001
Posts: 3
|
|
|
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
Joined: Apr 11, 2001
Posts: 149
|
|
|
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..
|
 |
 |
|
|
subject: Edit Checking JSP or Servlets
|
|
|