if u havea .class file ,how can u say whether it is servlet
or not ,dont use java decompliler

Answer Posted / kunal

Just Use Reflection to get its SuperClass. If this super
class is Any of Servlet class like HttpServlet or
GenericServlet then this class is a servlet...

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How servlets are deployed in java?

544


Explain the architechure of a servlet?

602


Elucidate servlet attributes and its scope?

567


What are the functions of the servlet container?

1027


What is preinitialization of a servlet?

579






How can the session in servlet be destroyed?

639


How to handle exceptions thrown by application with another servlet?

608


Difference between forward() method and sendredirect() method ?

582


Can we fetch the attributes related to a servlet on a different servlet?

633


What are the different methods involved in generic servlet?

553


What is java servlet?

606


When a servlet accepts a call from a client, it receives two objects. What are they?

760


What are the difference between session and cookies in servlet? Explain

558


What is MIME Type?

661


Write all the phases defined in servlet life cycle?

588