How to run a servlet program?

Answer Posted / suresh

we have make dir name is,WEB-INF is the root directory
WEB-INF
--classes dir
--lib dir
--src dir
--web.xml
-html file
-dhtml file
-jsp file

lib dir contains
--jasper-runtime.jar
--servlet-api.jar
--jsp-api.jar

your source code put in the src dir

--put the WEB-INF dir in your tomcat server and run the servlet

Is This Answer Correct ?    27 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between GET and POST?

920


How to get the current httpsession object?

890


What are different methods of session management in servlets?

1021


Explain the war file?

846


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

846


Define the life cycle of a servlets.

808


List the Different types of servlet?

807


What are the different methods of session management in servlets?

759


What is the use of attribute in servlets?

780


Who is responsible for writing a constructor?

1034


What is the element?

801


How would you create deadlock on your servlet?

860


What is a servlet context object?

890


What are different ways for authentication of servlet?

749


How does java thread pool work?

796