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 / giridhar gangapatnam

Sampleapplication
-- any html or jsp pages
-- WEB-INF
--web.xml
--lib(which contains any jar files)
--classes
--(all Servlet .class files)


After compilation of Servlet .java files start the Tomcat
Server and in URL type like:
http://localhost:8080/Sampleapplication/.html(or).jsp <--(enter)

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create a cookie using servlet?

1217


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1184


Is servlet thread safe?

1038


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1094


What’s the difference between sendredirect and forward methods

1104


What are all the advantages of servlet over cgi?

1136


Tell us something about servletcontext interface.

1141


How to get the actual path of servlet in server?

1271


What is servlet and its use?

1165


Which java application server is the best?

1083


How is a servlet implemented in code?

1120


Explain the differences between jsp and servlet.

1045


What is difference between server and servlet?

1138


What do you mean by annotations in servlet?

1102


What is MIME Type?

1199