JSP Tag Libraries

Скачать в pdf «JSP Tag Libraries»

for the server <%= Request.ServerVariables(«SERVER NAME»)

1 %>



This fragment obviously contains standard HTML, with the exception of special text found between the <% and %> characters. That special text is the script the server executes when this page is requested. In this case (and in most ASPs), the script is written in Microsoft VBScript language. This particular ASP fragment creates dynamic content which is affected by the value of a server variable, server_name. You should be able to make out the conditional logic in this fragment, which dictates that if the value pointed to by server_name is the string «locaihost», a message is returned to the user stating they are on their local machine. Otherwise, a different message is returned, including the value of the variable server_name. This logic is pretty easy to identify, even if you’ve never before seen ASP. The scripting languages for server page technologies have been designed to keep the entry barrier low, so that both beginning programmers and ambitious HTML developers can readily grasp the syntax.

To further simplify the generation of dynamic content, server pages technologies provide a means of extending the core scripting syntax with objects that enable low-level functionality, such as database access and email support. Most server pages environments ship with built-in support for popular databases, which greatly simplifies the task of generating data-driven web applications. This simplicity, coupled with the fact that the server does not have to repeatedly open (and initialize) new processes, makes server pages technologies the foundation of many web applications. Yet, as you may imagine, this simplicity comes at a price.

Скачать в pdf «JSP Tag Libraries»