Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the different session tracking techniques?

1242


What is a server side include (ssi)

1236


How to get the actual path of servlet in server?

1271


Can servlet have a constructor ?

1100


What is difference between PrintWriter and ServletOutputStream?

1350


How a servlet is unloaded?

1135


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

1072


Which event is fired at the time of setting, getting or removing attribute from application scope?

1189


What are different ways for servlet authentication?

1164


What do you mean by cgi and what are its drawbacks?

1028


Explain jsessionid and when is it created?

1186


What is servlet container?

1161


What are the exceptions thrown by servlets? Why?

1245


What is http servlet in java?

1117


What is the structure of the http response

1220