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

Whether thread can be used in servlets?

727


What is servlet and its use?

623


Define the life cycle of a servlets.

570


What is getservletcontext?

548


What is string tokenizer?

624






Describe the phases of servlet lifecycle?

630


What are the steps involved in placing a servlet within a package?

583


How can we create deadlock situation in servlet?

835


What is the advantage of Servlets when compared with other server side technologies?

1853


How can you create a session in servlet?

591


What is context in servlet?

537


How do you communicate in between Applets and Servlets?

591


What is servlet used for?

694


What are the steps that are required to handle the multi-threading?

593


What is cookie in servlet?

591