can it possible to validate form field before execution of a
servlet service method if yes how??
Answer Posted / m saravanakumar
If you want to intercept a request before servicing you
should use Filter concept in servlet which will help in
lots of ways. like the following...
1) Using the Filter we can logs the IPAddress of client
machine in log file.
2) can do the form validation like trim() functions.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the use of servlet wrapper classes?
What is servlet used for?
What is meant by cookies?
Which interface should be implemented by all servlets?
Explain servlet events?
If a servlet is not properly initialized, what exception may be thrown?
What if we pass negative value in load-on-startup?
How does java thread pool work?
How do you define a servlet?
Who is responsible for writing a constructor?
How httpservlet is different from the genericservlet?
What is war file?
What do you mean by url pattern in servlet?
What do you mean by annotations in servlet?
What are all the protocols supported by httpservlet?