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
What is the workflow of a servlet?
What do you mean by annotations in servlet?
What's the use of servletcontext?
What are the objects involved when a servlet receives a call from client?
What is a generic servlet?
What is the purpose of requestdispatcher interface?
How to upload a file to the server using servlet?
Which application server is best for java?
Is servlet thread safe?
How can an existing session be invalidated?
What is servlet collaboration?
List the Different types of servlet?
What is the difference between using getSession(true) and getSession(false) methods?
How to make sure a servlet is loaded at the application startup?
What is servlet container?