File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Edit Checking JSP or Servlets