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

Which interface should be implemented by all servlets?

968


Define servlet mapping?

935


Explain the difference between get and post method in servlet?

897


Which java application server is the best?

799


Can you use javascript in servlets?

845


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

821


Can you refresh servlet in client and server-side automatically?

837


What are the type of protocols used in httpservlet?

841


What is the use of servlet wrapper classes?

919


What is the advantage of Servlets when compared with other server side technologies?

2108


What are the mechanisms used by a servlet container for maintaining session information?

799


How forward () method is different from send redirect () method?

752


Differentiate between the web server and application server?

803


Why servlet is faster than jsp?

798


What are the servlet events?

799