Chapter 27 Flashcards
What is J2EE
Java 2 enterprise edition. Its a specification. Companies can follow the specifications and make server. e.g. Apachi
What is the root folder for tomcat
webapps
e.g. http://localhost:8080
What is WAR file
Web archive files. All projects files can be packed into WAR file and then we can distribute our project.
What are 2 packages for servlets
1- javax.servlet
2- javax.servlet.http
What are 2 types of servlets
1- Generic Servlet
2- Http Servlet
What is GenericServlet for
For writing protocol independent servlet
What is Httpservlet for
It extends from genericservlet and it adds functionality for writing http specific servlets
What is the interface every servlet must have
javax.servlet.Servlet interface
What are methods in servlets to entertain get and post
doget and dopost methods
Who tells tomcat which classes and servlets you have
Deployment descriptor. Its an XML file.
What are 2 parameters of doGET() method
1- Request
2- Response