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

Can filter be used as request or response?

971


What is the difference between Server and Container?

1254


What is the use of request dispatcher interface?

1013


What if we pass negative value in load-on-startup?

1284


How can the session in servlet can be destroyed?

1184


What's the advantages using servlets than using cgi?

1000


Why doesn’t a servlet include main()?

1050


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

1080


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

1033


Why do we use sendredirect() method?

978


What is java servlet session?

975


Can we refresh servlet in client and server side automatically?

1058


Explain servlet.

1045


What is servlet name in web xml?

995


How do you load an image in a Servlet?

1193