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 servlet chaining?
What is meant by cookies?
How can you use a servlet to generate a plain text instead of html?
How can I send user authentication information while making URL Connection?
Difference between get and post in java servlets?
What is servlet initializer?
What is httpservlet class?
Explain url encoding?
Differentiate between the web server and application server?
Write all the phases defined in servlet life cycle?
Given the request path below, which are context path, servlet path and path info?
How are filters?
Should I override the service() method?
How do you communicate in between Applets and Servlets?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?