Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

WEB TECHNOLOGY Write 300- to 600-word response to the following discussion topic

ID: 3756019 • Letter: W

Question

WEB TECHNOLOGY

Write 300- to 600-word response to the following discussion topics and post your answers to the discussion board topic "Java Server Pages":

Discuss how a JSP document is translated into a Java servlet.

Describe the basic concepts of a web application.

Write a 150-word response to one peer in which you respectfully and professionally offer your opinion of his or her post:

Pose a clarifying question (e.g., What did you mean by…, Why did you say…, What criteria did you use…, What was your intention…, What is the connection…, What were your assumptions…?).

Provide an application or practical example (e.g., I have seen an example of this..., The result of this could be…).

Explanation / Answer

Answer:

How web server handles a servlet request:

The web server will checks if the servlet is requested for the first time.


if the servlet is requested for the first time, the web container does the following steps or flow:

->Loads the servlet class into it.
->And after it will Instantiates the servlet class.
->Then after it Calls the init method passing the ServletConfig object


In the web server the web container is responsible to andle the request.

how will the web container will handle the request the steps are listed bellow:

->it maps the request with servlet in the web.xml file.
->Then it creates the request for the response object for the request.
->Then it will calls the service method on the thread.
->After this the public service method will internally calls protected service method.
->Then after protected service method will calls the doGet method that deponds on the type of requestt.
->The doGet method willl genrates the response and it is passed to the client.
->Then after sending the response the web container delets the request and the responce object

======
The basic syntax rules of XML:

The XML documents will consists of one root elementand it will the parent of the all other elements
All the XML elements must have an ending tag.

Syntax:

<root>(parent node)
<child node>
<subchild>.....</subchild>
</child>
</root>

Example:

<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>The</to>
<from>Bellow</from>
<heading>Is the example</heading>
<body>XML</body>
</note>

==


JSP (JavaServer Page)

Java Server Page (JSP)is a server side programming thechnology that enables the creation of dynamic platforms independent method for building web based application

when the JSP file is modified,
JSP is transulated into a servlet
->but only after the JSP url is requested by the client
->Application needs not be reloaded when JSP file is modified

Server does not generate the servlet class after start up if the latter already exists and isn't too old
->Generated Servlet acts just like any other servlet

The gerated servlet can handle GET,POST,HEAD requests through it does not implement doGet(), doPost(),doHead() exlicitly
->its Servlet.service() method calls the newly implemented main method named HttpJspBase._jspService()