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 workflow of a servlet?
Why is http protocol called as a stateless protocol?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Differentiate between get and post?
What is the inter-servlet communication?
What are the types of protocols supported by httpservlet ?
What are the differences between forward() method and sendredirect() methods?
How many objects of a servlet is created?
Why do we need a constructor in a servlet if we use the init method?
What is the difference between Difference between doGet() and doPost()?
List some life cycle methods of a servlet.
What is servlet mapping?
What do you mean by cgi and what are its drawbacks?
What are the type of protocols used in httpservlet?
Is servlet synchronized?