can it possible to validate form field before execution of a
servlet service method if yes how??

Answer Posted / suresh

We can do it, There are two validation is available

1. Form validation
2. Server side validation

1. Form Validation - This validation is perform client side,
java script used to achieve these form validation

2. Server side Validation - This type we can use predefined
server side validation method used to achieve these validate.

Note:- In perform wise we compare Form validation is better
than server side validation. it's easy to progress.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pure servlet?

953


What is the difference between the http servlet and generic servlet?

903


How to upload a file to the server using servlet?

770


Why servlet is mostly used?

989


What is difference between GenericServlet and HttpServlet?

789


Which is better jsp or servlet?

794


How does Cookies work in Servlets?

917


How can we refresh automatically when new data has entered the database?

869


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

879


What is a generic servlet?

721


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3145


Explain the difference between generic servlet and http servlet?

758


When Servlet is unloaded?

871


What is the disadvantage of cookies?

800


Define servlet mapping?

933