I could not find my mistake. Here is my code. Thanks in advance.
I had also faced the same problem. I got the solution to solve this problem.
Root of this problem is: I had added the servlet-api.jar and jsp-api.jar in my application lib directory. If Apache-tomcat is used to run application then its not necessary to add this jar files in our lib directory.
Goto build Path -> add external jars from tomcat-lib dir. Instead of adding(copying) it in lib dir of application.
This will resolve the problem.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.