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 is a servlet implemented in code?
How do you find out what client machine is making a request to your servlet
Define context initialization parameters.
What are different methods of session management in servlets?
What are different Authentication options available in Servlets.
What is the process to implement doget and dopost methods?
What is servletconfig?
How httpservlet is different from the genericservlet?
Explain how to improve Servlet Performance?
What is servlet container. how it works?
What do you mean by url pattern in servlet?
What are the important functions of filters?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is the inter-servlet communication?
What are the differences between forward() method and sendredirect() methods?