Chapter 27 Flashcards

1
Q

What is J2EE

A

Java 2 enterprise edition. Its a specification. Companies can follow the specifications and make server. e.g. Apachi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the root folder for tomcat

A

webapps

e.g. http://localhost:8080

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is WAR file

A

Web archive files. All projects files can be packed into WAR file and then we can distribute our project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are 2 packages for servlets

A

1- javax.servlet

2- javax.servlet.http

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are 2 types of servlets

A

1- Generic Servlet

2- Http Servlet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is GenericServlet for

A

For writing protocol independent servlet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Httpservlet for

A

It extends from genericservlet and it adds functionality for writing http specific servlets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the interface every servlet must have

A

javax.servlet.Servlet interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are methods in servlets to entertain get and post

A

doget and dopost methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Who tells tomcat which classes and servlets you have

A

Deployment descriptor. Its an XML file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are 2 parameters of doGET() method

A

1- Request

2- Response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly