This section provides the main mapping between a request and a response object. The contents of code segment 2 in Table JSP.4-1 are determined from scriptlets, expressions, and the text body of the JSP page. These elements are processed sequentially; a translation for each one is determined as indicated below, and its translation is inserted into this section. The translation depends on the element type:
The semantics of the action type determines the name of the variables (usually that of the id attribute, if present) and their type. The only standard action in the JSP 1.1 specification that defines objects is the jsp:useBean action; the name of the variable introduced is that of the id attribute, its type is that of the class attribute. Note that the value of the scope attribute does not affect the visibility of the variables within the generated program; it affects only where (and thus for how long) there will be additional references to the object denoted by the variable. |