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
why we should override only no-agrs init() method.
What are different ways for authentication of servlet?
What must be implemented by all servlets?
What's the architecture of a servlet package?
What is httpservlet class?
request parameter how to find whether a parameter exists in the request object?
What is the directory structure of web application?
Explain the different ways for servlet authentication?
What’s the difference between forward() and sendredirect() methods?
Explain the difference between jsp and servlet?
How will two or three servlets interact or communicate with each other?
How a servlet is unloaded?
how many jsp scripting elements are there and what are those?
Which method of the httpservletrequest object is used?
What do you mean by a filter and how does it work?