File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Edit Checking JSP or Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Edit Checking JSP or Servlets" Watch "Edit Checking JSP or Servlets" New topic

Edit Checking JSP or Servlets

Roger Hunt

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..
I agree. Here's the link:
subject: Edit Checking JSP or Servlets
It's not a secret anymore!