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
Whether thread can be used in servlets?
How can we create deadlock situation in servlet?
What is servlet in web technology?
What are the type of protocols used in httpservlet?
Explain request dispatcher and its methods.
Is servlet a server side scripting language?
What is pure servlet?
What’s the difference between forward() and sendredirect() methods?
Explain the methods of request dispatcher in servlet?
Explain the lifecycle of a servlet?
Can servlet have a constructor ?
What are the functions of an intercepting filter?
Which event is fired at the time of project deployment and undeployment?
how the HTML data stored in web server?
What is meant by session? Tell me something about httpsession class?