How to run a servlet program?

Answer Posted / subrahmanyam

We have to Make a WEB-INF folder and under it classes
folder. In WEB-INF we have to write web.xml .

Our compled servelet class file should be stored in classes
folder.

Make a war file using jar & deploy in Web.

Is This Answer Correct ?    97 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which protocol will be used by browser and servlet to communicate

776


What are the supporting protocol by HttpServlet ?

872


What is called Session Tracking?

847


Explain how to improve Servlet Performance?

829


How forward () method is different from send redirect () method?

730


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

798


How can you create a session in servlet?

831


Explain load on start-up and its importance?

843


How to get the actual path of servlet in server?

970


What is the main purpose of java servlets?

797


How servlets are deployed in java?

738


How do I know if java is running on linux?

805


What are some disadvantages of storing session state in cookies?

798


What is life cycle of Servlet?

810


What is dispatcher servlet?

805