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

What is servlet api used for conneting database?

955


What is the servletconfig object?

756


How can we refresh automatically when new data has entered the database?

845


How to get the current httpsession object?

880


Write a hello world program using servlets.

802


Explain url encoding in servlet?

803


Can you send an authentication error from a servlet?

739


Explain jsessionid and when is it created?

796


Is java servlet still used?

771


What exactly are the functions of servlet?

816


How can the session in servlet be destroyed?

886


What is the life-cycle of servlets?

863


Which interface must be implemented by all servlets?

1035


Why do we have servlet wrapper classes?

795


What are the different session tracking techniques?

960