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 different Authentication options available in Servlets.

798


What is webservlet?

748


What is called a session?

851


What is the difference between encodeRedirectUrl and encodeURL?

845


Explain session tracking and its importance?

745


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

843


What do you mean by request dispatcher in servlet?

871


What is the difference between sendredirect() and forward() in a servlet?

744


What is pure servlet?

927


What are the different methods of session management in servlets?

751


Why do we have servlet filters?

796


How do servlets work?

772


What are different ways for servlet authentication?

787


Is servlet a controller?

759


How do you load an image in a Servlet?

880