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 major difference between context parameter and context attribute?
What is the difference between 2 types of servlets?
Which is better jsp or servlet?
What is servlet in tomcat?
Which method of the httpservletrequest object is used?
How do we call one servlet from another servlet?
How can the session in servlet can be destroyed?
Difference between forward() method and sendredirect() method ?
Define the life cycle of a servlets.
how many jsp scripting elements are there and what are those?
What is the difference between portlet and servlet?
Explain how does JSP handle run-time exceptions?
How we can call a jsp from the servlet?
How can you use a servlet to generate a plain text instead of html?
Difference between java beans & servlets?