This task is perfect for a custom tag library.
这个任务最适合于定制标记库。
Listing 1 shows what the handler of the custom tag should look like.
清单1展示了定制标记的处理函数是什么样的。
Create a new partial template and a new custom tag to speed things along.
创建一个新的局部模板和一个新的定制标记,以加快进程。
The JSP custom tag libraries are a collection of actions presented as tags.
JSP定制标记库是用标记表示的一组行为的集合。
The following scenario illustrates how the custom tag library would be used.
以下方案说明了如何使用定制标记库。
Custom row tag, cannot display cells.
自定义行标记,不能显示单元格。
The custom tag has two methods that return the component type and the renderer type.
定制标记有两个方法,分别返回组件类型和渲染器类型。
The TLD file for our XSS custom tag library, is shown in Listing 1.
清单1显示了我们的xss定制标记库的tld文件。
In this series, we have examined the capabilities of the four JSTL custom tag libraries and their usage.
在本系列中,我们讨论了4个JSTL定制标记库的功能及它们的使用。
The custom tag also has an optional params attribute, which can be a single object or an array of objects.
这个定制标记还有一个可选的 params属性,它可以是一个单一的对象或一个对象数组。
We have also demonstrated that the majority of the attacks can be eliminated when a Web site uses a simple custom tag library to properly encode the dynamic content.
我们还演示了当网站使用简单的定制标记库正确编码动态内容时,可以消除大多数攻击。
The unified EL of JSP 2.1 enabled this feature for any custom JSP tag that may or may not use the JSF API.
JSP 2.1统一后的EL对所有定制JSP标记(无论是否使用JSFAPI)启用这个特性。
You can add custom classes, on the other hand, to any HTML tag that makes sense to you.
另一方面,可以把定制类添加到对您有意义的任何HTML标记中。
With all the prep work behind us, we're ready to use our custom tag within a JSP page.
我们完成了所有这些准备工作后,我们就可以在JSP 页面中使用我们的自定义标记了。
So the example usage of this custom tag passes validation.
因此这个自定义标记的示例用法通过了验证。
Listing 9. Test for a custom tag.
清单9.自定义标记的测试。
In that case, you want to design a custom tag that supports all these table types.
在这种情况下,就需要设计一个支持所有这些表格类型的自定义标记。
The issue was caused by a custom tag engine, that kept large object lists in memory.
问题是由自定义标签引擎引起的,它会在内存中存放大型对象列表。
How does the JSP container know which attributes of a custom tag are required and which are not?
jsp容器如何知道自定义标记的哪些属性是必选的哪些是可选的?
JSP pages, however, with their mix of code and custom tag libraries, cannot function well in this environment.
然而,由于jsp页面将代码和自定义标记库相混合,因此无法在这种环境下良好地工作。
Using custom tag libraries to construct the component tree in the view root.
使用自定义标签库在视图根中构造组件树。
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页面中包含代码,你应该用自定义标签来包装它。
In this installment of J2EE pathfinder, you've walked through the process of creating a custom tag from scratch and implementing it in a JSP page.
在J2EE探索者的这篇文章中,您经历了从头创建一个自定义标记并在jsp页面中实现它的过程。
Next, we add a JSP declaration to any page that will need to use the custom tag library.
然后,将JSP声明加入到所有需要使用自定义标记库的页面中。
Now let's consider a more complex example, where we use the ability of a custom tag to generate more than one bean definition.
现在让我们来考虑一个更加复杂的例子,其中我们要使用自定义标签的能力来产生不止一个bean定义。
Perhaps as much as 80 percent of the custom tag functionality that you will need has already been created and standardized by the J2EE community.
您所需要的自定义标记功能中也许有多达百分之八十已经由J2EE团体创建并标准化了。
Here, I'll explain how to create a custom tag for table display that is flexible enough to handle different HTML controls, such as href, checkbox, radio button, text field, and combo box.
我将介绍如何为表格显示创建自定义标记,让它有足够的灵活性以应付不同的HTML控件,如href、选择框、单选按钮、文本框和组合框。
Handle custom header tag processing.
处理自定义SOAP消息头标记。
Listing 7. A simple custom Grails tag.
清单7.简单的自定义grails标记。
Next, we use select helper to create a custom HTML select tag with option values.
接下来,使用selecthelper创建带有选项值的自定义HTML选择标记。
应用推荐