1 | <!-- |
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
3 | contributor license agreements. See the NOTICE file distributed with |
---|
4 | this work for additional information regarding copyright ownership. |
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
6 | (the "License"); you may not use this file except in compliance with |
---|
7 | the License. You may obtain a copy of the License at |
---|
8 | |
---|
9 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
10 | |
---|
11 | Unless required by applicable law or agreed to in writing, software |
---|
12 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
14 | See the License for the specific language governing permissions and |
---|
15 | limitations under the License. |
---|
16 | --> |
---|
17 | <html> |
---|
18 | <head> |
---|
19 | <title>Tag Plugin Implementation</title> |
---|
20 | <h2>How to write tag plugins</h2> |
---|
21 | <p> |
---|
22 | To write a plugin, you'll need to download the source for Tomcat 5. |
---|
23 | There are two steps: |
---|
24 | <ol> |
---|
25 | <li> |
---|
26 | Implement the plugin class.<p/> |
---|
27 | This class, which implements |
---|
28 | <tt>org.apache.jasper.compiler.tagplugin.TagPlugin</tt> |
---|
29 | instructs Jasper what Java codes to generate in place of the tag |
---|
30 | handler calls. |
---|
31 | See Javadoc for <tt>org.apache.jasper.compiler.tagplugin.TagPlugin</tt> |
---|
32 | for details. |
---|
33 | </li> |
---|
34 | |
---|
35 | <li> |
---|
36 | Create the plugin descriptor file <tt> WEB-INF/tagPlugins.xml</tt><p/> |
---|
37 | This file |
---|
38 | specifies the plugin classes and their corresponding tag handler |
---|
39 | classes. |
---|
40 | </li> |
---|
41 | </ol> |
---|
42 | </head> |
---|
43 | </html> |
---|