急 急 急帮忙翻译一下!!!!谢谢不要在线翻译的!!

来源:百度知道 编辑:UC知道 时间:2024/06/30 19:53:55
3.1.1 What expressions look like.
Expressions in JSTL look like this:
${expression}
They start with ${ and end with }; whatever comes between these two markers is
treated as an expression. Expressions are like placeholders. In contrast with text
like “Hi there!”, they are not simply printed when they appear. Instead, they are computed
by the expression language (see figure 3.1), and the results of this computation
are printed. For example, consider the following simple expression:
<c:out value="${1 + 2}"/>
Instead of causing the <c:out> tag to print the literal text ${1 + 2}, the expression
in the value attribute causes the tag to print out 3.
All JSTL tags work like this. In most cases, when an expression appears in a
JSTL tag’s attribute, that expression gets computed, or evaluated. The result of this
evaluation is fed to the tag, which then goes about its business.
Table 3.1 <c:out> tag

3.1.1什么表情的样子。
表现在jstl看起来就像这样:
$ (表达)
他们开始与$ (以)结尾;一切在这两者之间是标志
被视为表达。表现形式是一样的占位符。而相比之下,文本
像“喜有! ” ,他们并非简单的印刷他们何时出现。相反,它们是计算机
所表达的语言(见图3.1 ) ,此结果计算
印制。举例来说,考虑以下简单的表达:
<c:out value="${1 + 2}"/>
而不是造成<c:out>标记打印文字元( 1 + 2 ) ,表达
在价值属性的原因标记打印出来3 。
所有jstl标签的工作,喜欢这个。在大多数情况下,当一个表达出现在一
jstl标签的属性,即表达获得计算机,或评估。结果,这
评价是美联储向标记,它接着约其业务。
表3.1 <c:out>标记属性
属性描述所需的默认。
价值的表达(在jstl的表达语言)来计算是无
默认情况下的表达来计算,如果价值不无
escapexml是否转义字符;例如,要打印的性质&
作为&不是
没有真正的
46第3章
表达语言
3.1.2凡工作表现
在jstl 1.0 ,表现有特殊的意义,只有内jstl标签的属性。具体来说,
他们不工作,在模板文本。你不能简单地写
<p>喜$ ( username )的< / >
在您的JSP网页和期望的结果是动态的。象所有的模板内容,这
文字是印在字面上;如果你将它包含在您的网页,输出您的网页会
包含文字<p>喜$ ( username )的< / > ,用户将看到一个段落,与
文喜$ ( username )的。
jstl的表达,也没有特殊的意义,标记内的属性。
在一个HTML标记一样,
的<a href="${link}"/>
文$ (连结)只不过是和在这种情况下,可能误-部分