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...

How to run a servlet program?

Answer Posted / kunal sagar

first we con compile the java code throught javac compiler.
then,its .class file will be created that .class file copy
and paste the in the directory
c:/program files/apache/tomcat/webapps/servlet/web-inf
/classes.
then back one step backward
change the servlet code with ur file name
and also sevlet mapping code with ur file name
save that file
then open explorar
and type the local host address

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new in ServletRequest interface ? (Servlet 2.4)

1009


What is api in servlet?

1019


What is setattribute in servlet?

1137


Why servlet is used as controller ? Not JSP? I want complete explation?

1127


How to get the path of servlet in the server?

1008


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

1071


How can the session in servlet can be destroyed?

1177


Which java application server is the best?

1027


How do you get the ip address of the client in servlet?

1006


What do you mean by request dispatcher in servlet?

1117


How to find whether a parameter exists in the request object?

1106


What do you mean by request dispatcher in servlet? Also explain its methods.

1145


What are the phases of servlet life cycle?

1108


Which java framework is most popular?

1136


What is load-on-startup in servlet?

1140