Answer Posted / giridhar gangapatnam
Sampleapplication
-- any html or jsp pages
-- WEB-INF
--web.xml
--lib(which contains any jar files)
--classes
--(all Servlet .class files)
After compilation of Servlet .java files start the Tomcat
Server and in URL type like:
http://localhost:8080/Sampleapplication/.html(or).jsp <--(enter)
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
Why do we need a constructor in a servlet if we use the init method?
Tell us something about servletcontext interface.
What are the annotations used in servlet 3?
What is the difference between context parameter and context attribute?
What is servlet initializer?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
If a servlet is not properly initialized, what exception may be thrown?
How many servlet objects are created?
What is war file?
Explain the lifecycle of a servlet?
How does java thread pool work?
What is servlet and its use?
What is http servlet?
How native code can be used in a servlet?
What is a servlet engine?