File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "beginner servlet question" Watch "beginner servlet question" New topic

beginner servlet question

Donald Wynn

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
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: beginner servlet question
Similar Threads
How can I change the sdk version of Websphere 4 if I already install it
javascript, servlets and SVG
Export in Excel
Capturing Form Data
Is there any way to get Servlet Init Parameter using EL?