How to run a servlet program?

Answer Posted / anji

The structure of the web app. is
demo[root]
- all jsps will go her
- WEB-INF
- web.xml
- tld files
- classes
- all java class files will go here

Compile all the files and create a war file
copy the war file into Tomcat_root\webapps folder
if you use weblogic or webspehere the deployment will be
different.

Is This Answer Correct ?    41 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How httpservlet is different from the genericservlet?

562


Can you send an authentication error from a servlet?

517


What do you mean by request dispatcher in servlet? Also explain its methods.

607


What do you mean by servlet?

717


Which java framework is most popular?

576






How is the get () method different from the post() method?

534


Why is http protocol called as a stateless protocol?

535


What is cookie? Why is cookie used?

579


Explain the differences between jsp and servlet.

537


How do you create a cookie using servlet?

579


How can we create deadlock situation in servlet?

835


Difference between GET and POST?

707


What are Servlets?

596


Explain how to improve Servlet Performance?

594


What is the life-cycle of servlets?

631