Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the use of servlet wrapper classes?

1138


What is servlet used for?

1106


What is meant by cookies?

1038


Which interface should be implemented by all servlets?

1177


Explain servlet events?

956


If a servlet is not properly initialized, what exception may be thrown?

1139


What if we pass negative value in load-on-startup?

1242


How does java thread pool work?

1035


How do you define a servlet?

949


Who is responsible for writing a constructor?

1217


How httpservlet is different from the genericservlet?

1088


What is war file?

1038


What do you mean by url pattern in servlet?

1081


What do you mean by annotations in servlet?

1021


What are all the protocols supported by httpservlet?

1209