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

Explain the jar and war files in servlet?

817


Explain get and post.

872


What is servlet instance?

770


How does java thread pool work?

789


How many servlet objects are created?

792


What is difference between get and post method?

788


What is meant by session? Tell me something about httpsession class?

798


What are the types of protocols supported by httpservlet ?

944


How to generate the server side programming and the advantages of it over the other languages?

785


What are Servlets?

834


How are filters?

806


What are the various ways of session supervision in servlets?

751


What is the difference between sendredirect() and forward() in a servlet?

744


Why HttpServlet class is declared abstract?

880


What is URL Encoding?

863