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
Explain url encoding?
What is the servletconfig object?
What is the need of servlet filters?
How do servlets work?
What is servlet collaboration?
List the Different types of servlet?
What is servlet invoker?
What is cgi and what are its drawbacks?
What is the use of request dispatcher interface?
If servlet receives multiple requests, how many objects will it create?
Given the request path below, which are context path, servlet path and path info?
When servlet object is created?
What is java servlet?
What is ServletConfig object?
What is the difference between a generic servlet and http servlet?