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 are the mechanisms used by a servlet container for maintaining session information?
How can we perform any action at the time of deploying the project?
What is servlet and its use?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is servlet container. how it works?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Explain the difference between get and post method in servlet?
What do you mean by mime type?
Explain the concept of ssi ?
What is URL Encoding?
How native code can be used in a servlet?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
How to get the path of servlet in the server?
What is a servlet engine?
Write all the phases defined in servlet life cycle?