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 if you need to span your transaction across multiple servlet invocations?
What is http servlet?
What is session tracking?
Which protocol will be used by browser and servlet to communicate
How can you create a session in servlet?
What are the exceptions thrown by servlets? Why?
How do you design microservices?
Is servlet synchronized?
Explain url encoding?
What is servlet invoker?
What is difference between GenericServlet and HttpServlet?
What is the type of method for sending request from http server?
What do you mean by cgi in servlet?
What is cgi?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?