创建和配置标记处理函数。
我们要做的第一件事是编写标记处理程序类。
The first thing we need to do is write the tag handler class.
encodetag类是用于编码操作的标记处理程序。
The EncodeTag class is the tag handler for the encode action.
tagclass元素定义标记处理程序类encodetag。
The tagclass element defines the tag handler class EncodeTag.
这个API在实现JS p自定义标记处理程序时使用得非常多。
This API is used extensively when implementing JSP custom tag handlers.
然后,每一个标记处理程序实现JSPAPI中的一个特殊接口。
Every tag handler then implements a special interface from the JSP API. There are two types of tags: those that can process the content (or body) of a tag and those that cannot.
当使用JSF 1.1时,编码方法最初都由标记处理程序方法调用。
When using JSF 1.1, the encoding methods are initially called by the tag handler methods.
支持延期执行的表达式,JS p标记处理器可以根据需要执行它们。
Support for deferred expressions that can be executed as needed by a JSP tag handler.
当执行此页时,jsp容器会创建标记处理程序的实例并调用它们的方法。
When the page is executed, the JSP container creates instances of the tag handlers and calls their methods.
对源应用程序进行标记处理后,所有新的字符串被添加到词汇表数据库中。
After the source application is tagged, all new strings are added to the glossary database.
首要问题是将翻译标记处理成大家都知道的属性的形式,以表示该元素已经翻译过了。
The first issue is to handle a translation tag in the form of a well-known attribute to indicate that an element has been translated.
标记处理程序是web容器中的对象,在执行jsp页面时它帮助对操作求值。
A tag handler is an object in the Web container that helps evaluate actions when a JSP page executes.
JS p片段,是jsp页面的一部分,标记处理程序能用它来产生定制的内容。
JSP Fragments, which are portions of a JSP page that can be used by a tag handler to produce customized content.
如果我们开发的是几个标记或者定义有标记变量的标记,那么我们就会有多个标记处理程序类。
If we were developing several tags or defining tags with tag variables, we would have multiple tag handler classes.
清单18展示了helponfocustag类,它实现自定义组件的标记处理程序。
Listing 18 shows the HelpOnFocusTag class, which implements the tag handler for the custom component.
这将确保PortalServer的JSP处理器能够定位新的主题标记处理程序。
This will ensure that the JSP processor of Portal Server is able to locate the new Theme tag handler.
标记处理程序和TLD确定在请求时,从JS p页面内如何解释和处理这些标记及其属性和主体。
Tag handlers and TLDs determine how the tags, their attributes, and their bodies will be interpreted and processed at request time from inside a JSP page.
用户代理绝对不能将脚本数据当做HTML标记处理,而是要将它当成数据传递给相应的脚本引擎。
User agents must not evaluate script data as HTML markup but instead must pass it on as data to a script engine.
这样做的效果是请求PortalServer的JSP处理器执行我们自己的主题标记处理程序。
This has the effect of requesting the Portal Server's JSP processor to execute our version of the Theme tag handler.
当标记处理程序代码被JSP处理器调用时,doStartTag()方法将首先被调用。
package. When a tag handler code is invoked by the JSP processor, the doStartTag() method will be called first.
它们通常被当作不透明的标记处理,与浏览器相比,URI的内部结构和数据对于服务器来说更重要。
They are generally treated as opaque tokens whose internal structures and data are more important to the server than to the browser.
当容器遇到一个标记时,它调用与这个自定义标记相关联的标记处理程序,我们将在后面更多地讨论这个过程。
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.
本文提出一种估量各类乳癌细胞中雌激素受体相对量的方法。使用这种方法时,乳癌细胞经过荧光雌酮标记处理。
This paper presents a method for evaluating the relative quantity of estrogenreceptors in different types of breast cancer cells labeled by fluoresceinated estrone.
您可以回忆起在第1步中我们已经将标记处理程序类放到了classes目录中,所以我们实际上只需储存tld文件。
You will recall that we have already placed the tag handler class in the classes directory, in Step 1, so we actually only have to store the TLD file.
Servlet 2.5规范中声明,可以在某些We b组件(如servlet、筛选器、侦听器和标记处理程序)中定义注释。
The servlet 2.5 specification states that annotations can be defined on certain Web components, such as servlets, filters, listeners, and tag handlers.
如果希望在基于JSF 1.1的应用程序中使用此自定义组件,则标记处理程序的超类必须是UIComponentTag。
If you want to use the custom component in a JSF 1.1-based application, the superclass of the tag handler must be UIComponentTag.
使用覆盖标记处理程序缺省实现的相同原理,有很多不同的定制可以添加到一个高度个性化的门户网站的PortalServer中。
Using the same principle of overriding the default implementation of the Tag handler, there are many different customizations that can be added to portal Server for a highly personalized portal site.
在用标记处理XML文档的过程中,我们必须将所有的标志(markup)和 XML语法(比如实体、标签、属性等等)转换为标记格式。
The process of tokenising an XML document MUST convert all markup and XML syntax (i.e., entities, tags, attributes, etc.) into their corresponding tokenised format.
WebSphereApplicationServer可以对仅调用标记处理程序的代码进行优化,而这可以有助于使文件保持在64kb的上限之内。
WebSphere Application Server can apply optimizations to code that only calls tag handlers, which can help maintain the 64 KB limit.
servlet容器创建标记处理程序,对它们初始化并依次调用 doStartTag() 、doEndTag()和release()方法。
The servlet container creates tag handlers, initializes them and calls the doStartTag(), doEndTag() and release() methods, in that order.
应用推荐