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 new in ServletRequest interface ? (Servlet 2.4)
What is api in servlet?
What is setattribute in servlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
How to get the path of servlet in the server?
Can you refresh servlet in client and server-side automatically?
How can the session in servlet can be destroyed?
Which java application server is the best?
How do you get the ip address of the client in servlet?
What do you mean by request dispatcher in servlet?
How to find whether a parameter exists in the request object?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are the phases of servlet life cycle?
Which java framework is most popular?
What is load-on-startup in servlet?