if u havea .class file ,how can u say whether it is servlet
or not ,dont use java decompliler
Answer Posted / amitasite
1) Use Reflection API
2) Configure web.xml and configure <servlet> and <servlet-
mapping>. Send request to the URL. If it is not servlet
then will throw exception like
javax.servlet.ServletException: Class
com.request.TestServlet is not a Servlet
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How would you create deadlock on your servlet?
List some life cycle methods of a servlet.
Write a program to show the functionality of doget and dopost method?
What is servlet name in web xml?
What are the new features added to servlet 2.5?
What is difference between jsp and servlet?
Which method of the httpservletrequest object is used?
What are different methods of session management in servlets?
What are the phases of a servlet life cycle?
What is servlet in tomcat?
What are Servlets?
Whether we can get deadlock situation in servlets?
What are the annotations used in servlet 3?
Explain url encoding in servlet?
How to upload a file to the server using servlet?