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 are the different session tracking techniques?
What is a server side include (ssi)
How to get the actual path of servlet in server?
Can servlet have a constructor ?
What is difference between PrintWriter and ServletOutputStream?
How a servlet is unloaded?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
Which event is fired at the time of setting, getting or removing attribute from application scope?
What are different ways for servlet authentication?
What do you mean by cgi and what are its drawbacks?
Explain jsessionid and when is it created?
What is servlet container?
What are the exceptions thrown by servlets? Why?
What is http servlet in java?
What is the structure of the http response