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 can we invoke another servlet in a different application?

718


Which java application server is the best?

560


What is ServletContext object?

655


What is a java servlet?

564


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

577






How to handle exceptions thrown by application with another servlet?

620


What is the element?

596


What is a web container and what is its responsibility?

537


How can we implement a jsp page?

636


Which exception is thrown if the servlet is not initialized properly?

602


How can we create deadlock situation in servlet?

857


What methodology can be followed to store more number of objects in a remote server?

1825


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

673


What is the functionality of actionservlet and requestprocessor?

605


How we can call a jsp from the servlet?

541