Answer Posted / kunal sagar
first we con compile the java code throught javac compiler.
then,its .class file will be created that .class file copy
and paste the in the directory
c:/program files/apache/tomcat/webapps/servlet/web-inf
/classes.
then back one step backward
change the servlet code with ur file name
and also sevlet mapping code with ur file name
save that file
then open explorar
and type the local host address
Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
What is the use of welcome-file-list?
How can we refresh automatically when new data is entered into the database?
What is servlet in tomcat?
What is the procedure for initializing a servlet?
When Servlet is unloaded?
Explain session tracking and its importance?
What is cookie in servlet?
What’s the difference between forward() and sendredirect() methods?
What is the difference between 2 types of servlets?
What are the types of servlet?
What is url encoding and url decoding
What is new in ServletRequest interface ? (Servlet 2.4)
What is servlet and its life cycle?
What are the difference between RMI and Servlets?
What is the process for chaining servlet?