aspose file tools*
The moose likes Servlets and the fly likes beginner servlet question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "beginner servlet question" Watch "beginner servlet question" New topic
Author

beginner servlet question

Donald Wynn
Greenhorn

Joined: Dec 04, 2002
Posts: 29
I want to validate some check boxs on my servlet, whats a good way to do that?
Thomas Hubschman
Ranch Hand

Joined: Sep 25, 2002
Posts: 88
Donald,
There are two ways you can validate forms. In the HTML form itself via JavaScript and in your servlet/jsp code.
If you do it with JavaScript you will not need to send a sometimes time consuming HTTP request and response pair from and to the user, as all of the validation code has already been downloaded with the original page.
If you do it on the server in a servlet or JSP page you have more flexibility and access to all of the Java API but as mentioned above it is more time consuming.
That's the basics. Good luck!
[ December 09, 2002: Message edited by: Thomas Hubschman ]

SCJP '02, SCWCD '02, SCJD '08, SCSNB '09, SCEA '10
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: beginner servlet question