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 are the types of Session Tracking ?
How does java thread pool work?
Write a program to show the functionality of servlets.
Define the life cycle of a servlets.
Why is init() method is used in servlets?
Whats the advantages using servlets over using CGI?
Elucidate servlet attributes and its scope?
What are the differences between forward() method and sendredirect() methods?
What is the use of httpservletresponsewrapper?
What is the major difference between servlet and applet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is the difference between 2 types of servlets?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What are the steps that are required to handle the multi-threading?
Explain the difference between servlet and cgi?