forked from IanDarwin/darwinsys-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
darwintags.tld
157 lines (136 loc) · 4.76 KB
/
darwintags.tld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>Ian Darwin JSP Tags TLD</shortname>
<uri>http://www.darwinsys.com/darwintags</uri>
<info>Ian Darwin JSP Tags TLD</info>
<!-- backref tag generates a "Back" tag for e.g., use in help pages -->
<tag>
<name>backref</name>
<tagclass>com.darwinsys.jsptags.BackRefTag</tagclass>
<bodycontent>empty</bodycontent>
<!-- surroundingtag (all l/c name) is a single HTML tag to surround
the <a> tag with, e.g. "h6" -->
<attribute>
<name>surroundingtag</name>
<required>false</required>
</attribute>
<!-- label is the label to print, e.g., "Back" -->
<attribute>
<name>label</name>
<required>false</required>
</attribute>
</tag>
<!-- DataTable tag runs a query and makes a table of the results -->
<tag>
<name>calendar</name>
<tagclass>com.darwinsys.jsptags.CalendarTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>dataSource</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!-- commandoutput tag runs a shell command and gets the output. -->
<tag>
<name>commandoutput</name>
<tagclass>com.darwinsys.jsptags.CommandOutputTag</tagclass>
<bodycontent>JSP</bodycontent>
<!-- command is the command to run, e.g., "hostname" -->
<attribute>
<name>command</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!-- DataTable tag runs a query and makes a table of the results -->
<tag>
<name>datatable</name>
<tagclass>com.darwinsys.jsptags.DataTableTag</tagclass>
<bodycontent>JSP</bodycontent>
<!-- resultset or {dataSource OR dataSourceName} + a query
*** MUST be specified. The query can come in the body or as
*** an attribute.
-->
<attribute>
<name>dataSource</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>dataSourceName</name>
<required>false</required>
</attribute>
<!-- query is the SQL Query, e.g., "select title,ISBN from books" -->
<attribute>
<name>query</name>
<required>false</required>
</attribute>
<attribute>
<name>resultSet</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<!-- The primary key and link URL for linking -->
<attribute>
<name>pkey</name>
<required>false</required>
</attribute>
<attribute>
<name>link</name>
<required>false</required>
</attribute>
<!-- The CSS Style for the title and rows 2, 4, 6 ... -->
<attribute>
<name>titleStyle</name>
<required>false</required>
</attribute>
<attribute>
<name>style1</name>
<required>false</required>
</attribute>
<!-- The CSS Style for the data rows 1, 3, 5 ... -->
<attribute>
<name>style2</name>
<required>false</required>
</attribute>
</tag>
<!-- loggedin tag skips body if you're not logged in at all -->
<tag>
<name>loggedin</name>
<tagclass>com.darwinsys.jsptags.LoggedInTag</tagclass>
<bodycontent>JSP</bodycontent>
</tag>
<!-- loggedinuser tag prints who you're logged in as -->
<tag>
<name>loggedinuser</name>
<tagclass>com.darwinsys.jsptags.LoggedInUserTag</tagclass>
<bodycontent>JSP</bodycontent>
</tag>
<!-- loggedinrole tag skips body if you're not logged in as a user in "role" -->
<tag>
<name>loggedinrole</name>
<tagclass>com.darwinsys.jsptags.LoggedInRoleTag</tagclass>
<bodycontent>JSP</bodycontent>
<!-- role is the role to print, e.g., "admin" -->
<attribute>
<name>role</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!-- textimage tag outputs an image for the "text" attribute -->
<tag>
<name>textimage</name>
<tagclass>com.darwinsys.jsptags.TextImageTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>text</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>