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

What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

798


What is servlet initializer?

734


Define context initialization parameters.

823


What is cookie? Why is cookie used?

837


Differentiate between get and post?

917


What is the inter-servlet communication?

951


What is called a session?

875


How does java thread pool work?

815


What do you mean by servlet?

929


Which interface should be implemented by all servlets?

969


how many jsp scripting elements are there and what are those?

825


What are the mechanisms used by a servlet container for maintaining session information?

799


What are its drawbacks of cgi?

819


What is new in ServletRequest interface ? (Servlet 2.4)

813


Can we refresh servlet in client and server side automatically?

825