Listing 1 shows what the handler of the custom tag should look like.
清单1展示了定制标记的处理函数是什么样的。
Listing 16 contains the rpc.tag file, which implements the custom tag.
清单16包含rpc. tag文件,该文件实现定制标记。
The following scenario illustrates how the custom tag library would be used.
以下方案说明了如何使用定制标记库。
Thus, if the component already exists the custom tag will not modify its state.
因此,如果组件已经存在,自定义标签将不会修改它的状态。
The custom tag has two methods that return the component type and the renderer type.
定制标记有两个方法,分别返回组件类型和渲染器类型。
Next, we add a JSP declaration to any page that will need to use the custom tag library.
然后,将JSP声明加入到所有需要使用自定义标记库的页面中。
The name and attributes of the custom tag are specified in the js.tld file (shown in Listing 19).
自定义标记的名称和属性是在js. tld文件中指定的(如清单19所示)。
The custom tag also has an optional params attribute, which can be a single object or an array of objects.
这个定制标记还有一个可选的 params属性,它可以是一个单一的对象或一个对象数组。
On JSP and Custom tag, the feature, development flow, class, implementation interface of the Custom tag were analysed.
在JSP和自定义标签技术方面比较详细地分析了自定义标签技术的特色及其开发流程和分类及实现的接口。
When the container encounters a tag, it invokes the tag handler class associated with the custom tag, which is a process we'll talk more about later.
当容器遇到一个标记时,它调用与这个自定义标记相关联的标记处理程序,我们将在后面更多地讨论这个过程。
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团体创建并标准化了。
With all the prep work behind us, we're ready to use our custom tag within a JSP page.
我们完成了所有这些准备工作后,我们就可以在JSP 页面中使用我们的自定义标记了。
The issue was caused by a custom tag engine, that kept large object lists in memory.
问题是由自定义标签引擎引起的,它会在内存中存放大型对象列表。
The JSP container evaluates each custom tag during the execution of a JSP page that references it.
在执行引用自定义标记的jsp页面时,jsp容器判断每一个自定义标记。
It finds what it needs to know about a custom tag by reading metadata about the tag.
它通过读取标记的元数据来确定需要知道自定义标记的哪些信息。
So the example usage of this custom tag passes validation.
因此这个自定义标记的示例用法通过了验证。
The JSP custom tag libraries are a collection of actions presented as tags.
JSP定制标记库是用标记表示的一组行为的集合。
For example, if you want to change the HTML produced by a JSF component, you normally have to recode the component's renderer and implement a new custom tag.
例如,如果想要更改JS f组件生成的HTML,通常情况下需要对组件的呈现程序进行重新编码,并实现一个新的定制标记。
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页面中实现它的过程。
However, you can take the implementation of your custom validator one step further and make it look like built-in validation by creating a custom tag that utilizes the validator.
不过,通过创建一个使用这个验证器的自定义标签,使其看上去像是一个自带的验证,可以进一步实现自定义验证器。
Next month, we'll start talking about JSP custom tags and the JSP Standard tag Library (JSTL).
下个月,我们将开始讲述JS p自定义标记和JSP标准标记库(JSTL)。
The use of a custom tag and associated tag library would allow the example above to be converted to that shown in Listing 6.
使用自定义标记和相关的标记库允许把以上示例转换为清单6所示的内容。
Using the example below, we earlier looked at how custom tag validation worked.
以下面的代码为例,这是我们在前面了解自定义标记验证如何工作时所涉及的内容。
The last subsection shows how to implement a custom breadcrumb navigation tag, which uses this new service (part of the SPI).
最后一个小节将演示如何实现自定义浏览路径记录导航标记,该标记将使用这个新服务(属于该 SPI的一部分)。
The TLD file for our XSS custom tag library, is shown in Listing 1.
清单1显示了我们的xss定制标记库的tld文件。
If you want to use the custom component in a JSF 1.1-based application, the superclass of the tag handler must be UIComponentTag.
如果希望在基于JSF 1.1的应用程序中使用此自定义组件,则标记处理程序的超类必须是UIComponentTag。
JSP tag files are the ideal solution for simplifying Web component development because they let you create custom tag libraries, using the JSP syntax.
JS p标记文件是简化We b组件开发的理想解决方案,因为它们允许使用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定义。
The fourth and final set of JSTL actions is the SQL custom tag library.
JSTL第4个也是最后一个操作是sql定制标记库。
In this series, we have examined the capabilities of the four JSTL custom tag libraries and their usage.
在本系列中,我们讨论了4个JSTL定制标记库的功能及它们的使用。
应用推荐