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 are all the protocols supported by httpservlet?

1273


How do I support both get and post from the same servlet?

1205


What is the use of send redirect () method?

1084


What are sessions in servlets?

1062


Why is Servlet so popular?

1066


What are the drawbacks of cgi?

1035


What is called servlet mapping?

1072


What is servlet initializer?

970


What are the life cycle methods of the servlet?

1079


What is the dispatcher servlet?

981


What is ServletContext object?

1095


What are the annotations used in servlet 3?

1031


How the JSP file will be executed on the Server side?

1135


What is the default http method in the servlet?

1291


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1099