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 are the common methods that are included in the http servlet class?

792


Which is better jsp or servlet?

771


How would you create deadlock on your servlet?

844


How do you configure a centralized error handler in servlets?

772


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1938


What is meant by session? Tell me something about httpsession class?

795


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

797


What do you mean by cgi in servlet?

813


Can you send an authentication error from a servlet?

739


How does java thread pool work?

783


Difference between get and post in java servlets?

759


What is the disadvantage of cookies?

777


What is the servletconfig object?

755


Whether thread can be used in servlets?

950


Can filter be used as request or response?

738