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 is servlet mapping?
What is the purpose of requestdispatcher interface?
What do you mean by session tracking and also explain its techniques?
What are the advantages of servlets over traditional cgi?
What do you mean by interservlet communication?
Define the servlet mapping.
How the servlet is loaded?
How to commuincate between an applet and a servlet?
What are the disadvantages of storing session state in cookies?
Can you refresh servlet in client and server-side automatically?
What methodology can be followed to store more number of objects in a remote server?
Can filter be used as request or response?
Which interface should be implemented by all servlets?
What is meant by servlet? What are the parameters of the service method?
What is Client-Server Computing?