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
Name the packages that work with servlet?
What is difference between GenericServlet and HttpServlet?
What is cgi and what are its drawbacks?
How can the session in servlet be destroyed?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is servlet mapping?
How servlet is created?
What is a servlet?
What are the functions of Servlet container?
How do you define a servlet?
What is the procedure of invoking different servlet in a different application?
What are the different methods involved in the process of session management in servlets?
What is the default http method in the servlet?
How do you find out what client machine is making a request to your servlet
How can the referrer and the target urls be used in servlet?