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

What is preinitialization of a servlet?

975


List some life cycle methods of a servlet.

1013


What is difference between get and post method?

1008


What is the life cycle of a servlet?

1425


How would you create deadlock on your servlet?

1108


What is the purpose of dispatcherservlet properties?

1020


Difference between httpservlet and generic servlets?

1044


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

1090


What are the life cycle methods of a servlet?

991


Servlet is pure java object or not?

1142


Can we refresh servlet in client and server side automatically?

1003


Can we use the constructor, instead of init(), to initialize servlet?

1050


What is difference between PrintWriter and ServletOutputStream?

1224


Does servlet have main method?

1136


What is the difference between servlet and filter?

917