From the drop-down list you can see that there are four types of scoped variable.
从下拉列表中您能看到有四种范围变量。
The var and scope attributes specify a scoped variable for storing the results of the query.
var和scope属性规定存储查询结果的scoped变量。
The var and scope attributes are used to specify a scoped variable that -- as a result of <fmt:parseDate> -- the Date object is assigned to.
var和scope属性用来指定限定了作用域的变量(作为 <fmt:parseDate> 的结果),将把Date对象赋给该变量。
Similarly, when a DB read or update is performed, a SQL query result is stored in the $dbResult variable, which is also a global-scoped variable.
同样,在执行数据库读或更新时,将一个SQL查询结果存储在 $dbResult变量中,这也是一个全局变量。
If an exception was raised, then assignment to the scoped variable will occur: as the EL expression in Listing 18 suggests, its value will not be empty.
如果产生了异常,那么就会对那个限定了作用域的变量进行赋值:如清单18中的EL表达式所显示的那样,该变量的值将不会为空。
The var attribute causes the content fetched from the specified URL to be stored (as a String value) in a scoped variable, rather than included in the current JSP page.
var属性会导致从指定URL获取的内容(作为String值)被存储在一个限定了作用域的变量中,而不是包含在当前 JSP 页面中。
If the var attribute is specified, then a scoped variable with the indicated name will be created and assigned the current value of the index for each pass through the iteration.
如果指定了var属性,那么将会创建一个带有指定名称的并限定了作用域的变量,并将每次迭代的当前索引值赋给该变量。
If the var attribute is specified, then a scoped variable with the indicated name will be created and assigned the current value of the index for each pass through the iteration.
如果指定了var属性,那么将会创建一个带有指定名称的并限定了作用域的变量,并将每次迭代的当前索引值赋给该变量。
应用推荐