All business logic should be in classes, and if you absolutely had to have code in your JSP page, you would wrap it up in a custom tag.
所有的商业逻辑都应该在类中,如果你确实需要在你的JSP页面中包含代码,你应该用自定义标签来包装它。
For this example, in which the database query only returns the rows of a single table, you might just write a small PHP function to wrap each column in an XML tag.
在本例中,数据库查询只返回单个表的行,您也许要编写一个php小函数对XML标记中的每一列进行打包。
You can wrap that call with the tag to make it easier to digest the information.
您可以用标记约束该调用,使得按格式显示信息更为容易。
The other way is to wrap regions of the page in an a4j:outputPanel tag and mark those regions as "Ajax rendered" using the ajaxRendered attribute on that tag.
另一种方法是在 a4j:outputPanel标记中包裹页面中的区域并借助该标记的 ajaxRendered属性将这些区域标识为 “由 Ajax呈现的”。
Then we create client logic with ActionScript codes within a <mx:Script> tag and wrap the contents in a CDATA construct.
之后,我们再在 <mx:Script>标记内用ActionScript代码创建客户逻辑并将内容包装成一个 CDATA 结构(参见清单 5)。
Tag Region allows you to wrap existing text inside an element, using PSGML's internal parser to determine what elements are valid for the highlighted location.
TagRegion使用PSGML 的内部解析器来确定什么元素对于突出显示的位置有效,允许您将现有的文本包进元素中。
Write the code snippet that allows you to wrap up the E-mail address in a label tag, as shown in Listing 4.
编写一个代码片段,把电子邮件地址包围在一个标签标记中,如清单4所示。
A special section showing unique card, gift wrap and tag ideas is included so each gift can be presented wit a personal touch.
一个特殊的节展示独特的卡,礼品包装和标签的想法是使每个礼物包括可以呈现机智个人色彩。
A special section showing unique card, gift wrap and tag ideas is included so each gift can be presented wit a personal touch.
一个特殊的节展示独特的卡,礼品包装和标签的想法是使每个礼物包括可以呈现机智个人色彩。
应用推荐