Karten 62 Karten
Lernende 1 Lernende
Sprache English
Stufe Andere
Erstellt / Aktualisiert 12.09.2017 / 04.10.2017
Lizenzierung Keine Angabe     (Fabrizi)
0 Exakte Antworten 62 Text Antworten 0 Multiple Choice Antworten
Fenster schliessen

Where in an URL can the port number be specified and what happens, if omitted?

After the server, starting with a colon.
If omitted, standard port (80 for HTML/webservers) is used.

Fenster schliessen

How many TCP ports does a server have?

65.536 (16-bit)

Fenster schliessen

What's a CGI and what does it stand for?

Common gateway interface.
Web server application/script that creates dynamic content and/or saves data to the server,
based on the arguments, and returns it as (static) HTML.

Fenster schliessen

What's the difference between a Java servlet and a server page,
regarding content of HTML/Java?

A servlet is a Java application(CGI), containing HTML(output via println).
A JSP is a HTML page containing pieces of Java code.

Fenster schliessen

Which class does a servlet usually extend and which method(s) is/are usually overridden?

Usually extends HttpServlet and overrides
public void doGet or doPost with parameters:
(HttpServletRequest request, HttpServletResponse response).

Fenster schliessen

How many identifiers does a Java servlet have?

Filename, DD-name and url-pattern.

Fenster schliessen

What is a Deployment Descriptor?

An XML-File, which tells the container how to execute servlets/JSPs.

Fenster schliessen

Which two elements are used inside a Deployment Descriptor to specify a servlet
and which sub-elements do they contain?

servlet-name>...internal name...</servlet-name>
servlet-class>...full class name...</servlet-class>

servlet-name>...internal name...</servlet-name>
url-pattern>...public URL name...</url-pattern>