example for handling servlet request