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
Differentiate between the get and post method
What is the disadvantage of cookies?
Can you refresh servlet in client and server-side automatically?
How can you create a session in servlet?
What is the life cycle of a servlet?
What is the default http method in the servlet?
What are the jobs performed by servlets?
Explain how to improve Servlet Performance?
What are the exceptions thrown by servlets? Why?
What is the difference between the servlets and cgi programs?
What are the supporting protocol by HttpServlet ?
Can we refresh servlet in client and server side automatically?
What is cookie in servlet?
What do you mean by request dispatcher in servlet?
What is java servlet?