spring.tld 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
  3. <taglib>
  4. <tlib-version>1.1.2</tlib-version>
  5. <jsp-version>1.2</jsp-version>
  6. <short-name>Spring</short-name>
  7. <uri>http://www.springframework.org/tags</uri>
  8. <description>Spring Framework JSP Tag Library. Authors: Rod Johnson, Juergen Hoeller</description>
  9. <tag>
  10. <name>htmlEscape</name>
  11. <tag-class>org.springframework.web.servlet.tags.HtmlEscapeTag</tag-class>
  12. <body-content>JSP</body-content>
  13. <description>
  14. Sets default HTML escape value for the current page.
  15. Overrides a "defaultHtmlEscape" context-param in web.xml, if any.
  16. </description>
  17. <attribute>
  18. <name>defaultHtmlEscape</name>
  19. <required>true</required>
  20. <rtexprvalue>true</rtexprvalue>
  21. <description>Set the default value for HTML escaping, to be put
  22. into the current PageContext.</description>
  23. </attribute>
  24. </tag>
  25. <tag>
  26. <name>escapeBody</name>
  27. <tag-class>org.springframework.web.servlet.tags.EscapeBodyTag</tag-class>
  28. <body-content>JSP</body-content>
  29. <description>
  30. Escapes its enclosed body content, applying HTML escaping and/or JavaScript escaping.
  31. The HTML escaping flag participates in a page-wide or application-wide setting
  32. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  33. </description>
  34. <attribute>
  35. <name>htmlEscape</name>
  36. <required>false</required>
  37. <rtexprvalue>true</rtexprvalue>
  38. <description>Set HTML escaping for this tag, as boolean value. Overrides the
  39. default HTML escaping setting for the current page.</description>
  40. </attribute>
  41. <attribute>
  42. <name>javaScriptEscape</name>
  43. <required>false</required>
  44. <rtexprvalue>true</rtexprvalue>
  45. <description>Set JavaScript escaping for this tag, as boolean value.
  46. Default is false.</description>
  47. </attribute>
  48. </tag>
  49. <tag>
  50. <name>message</name>
  51. <tag-class>org.springframework.web.servlet.tags.MessageTag</tag-class>
  52. <body-content>JSP</body-content>
  53. <description>
  54. Retrieves the message with the given code, or text if code isn't resolvable.
  55. The HTML escaping flag participates in a page-wide or application-wide setting
  56. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  57. </description>
  58. <attribute>
  59. <name>message</name>
  60. <required>false</required>
  61. <rtexprvalue>true</rtexprvalue>
  62. <description>A MessageSourceResolvable argument (direct or through JSP EL).
  63. Fits nicely when used in conjunction with Spring's own validation error
  64. classes which all implement the MessageSourceResolvable interface. For
  65. example, this allows you to iterate over all of the errors in a form,
  66. passing each error (using a runtime expression) as the value of this
  67. 'message' attribute, thus effecting the easy display of such error
  68. messages.</description>
  69. </attribute>
  70. <attribute>
  71. <name>code</name>
  72. <required>false</required>
  73. <rtexprvalue>true</rtexprvalue>
  74. <description>The code (key) to use when looking up the message.
  75. If code is not provided, the text attribute will be used.</description>
  76. </attribute>
  77. <attribute>
  78. <name>arguments</name>
  79. <required>false</required>
  80. <rtexprvalue>true</rtexprvalue>
  81. <description>Set optional message arguments for this tag, as a
  82. (comma-)delimited String (each String argument can contain JSP EL),
  83. an Object array (used as argument array), or a single Object (used
  84. as single argument).</description>
  85. </attribute>
  86. <attribute>
  87. <name>argumentSeparator</name>
  88. <required>false</required>
  89. <rtexprvalue>true</rtexprvalue>
  90. <description>The separator character to be used for splitting the
  91. arguments string value; defaults to a 'comma' (',').</description>
  92. </attribute>
  93. <attribute>
  94. <name>text</name>
  95. <required>false</required>
  96. <rtexprvalue>true</rtexprvalue>
  97. <description>Default text to output when a message for the given code
  98. could not be found. If both text and code are not set, the tag will
  99. output null.</description>
  100. </attribute>
  101. <attribute>
  102. <name>var</name>
  103. <required>false</required>
  104. <rtexprvalue>true</rtexprvalue>
  105. <description>The string to use when binding the result to the page,
  106. request, session or application scope. If not specified, the result
  107. gets outputted to the writer (i.e. typically directly to the JSP).</description>
  108. </attribute>
  109. <attribute>
  110. <name>scope</name>
  111. <required>false</required>
  112. <rtexprvalue>true</rtexprvalue>
  113. <description>The scope to use when exporting the result to a variable.
  114. This attribute is only used when var is also set. Possible values are
  115. page, request, session and application.</description>
  116. </attribute>
  117. <attribute>
  118. <name>htmlEscape</name>
  119. <required>false</required>
  120. <rtexprvalue>true</rtexprvalue>
  121. <description>Set HTML escaping for this tag, as boolean value.
  122. Overrides the default HTML escaping setting for the current page.</description>
  123. </attribute>
  124. <attribute>
  125. <name>javaScriptEscape</name>
  126. <required>false</required>
  127. <rtexprvalue>true</rtexprvalue>
  128. <description>Set JavaScript escaping for this tag, as boolean value. Default is false.</description>
  129. </attribute>
  130. </tag>
  131. <tag>
  132. <name>theme</name>
  133. <tag-class>org.springframework.web.servlet.tags.ThemeTag</tag-class>
  134. <body-content>JSP</body-content>
  135. <description>
  136. Retrieves the theme message with the given code, or text if code isn't resolvable.
  137. The HTML escaping flag participates in a page-wide or application-wide setting
  138. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  139. </description>
  140. <attribute>
  141. <name>message</name>
  142. <required>false</required>
  143. <rtexprvalue>true</rtexprvalue>
  144. <description>A MessageSourceResolvable argument (direct or through JSP EL).</description>
  145. </attribute>
  146. <attribute>
  147. <name>code</name>
  148. <required>false</required>
  149. <rtexprvalue>true</rtexprvalue>
  150. <description>The code (key) to use when looking up the message.
  151. If code is not provided, the text attribute will be used.</description>
  152. </attribute>
  153. <attribute>
  154. <name>arguments</name>
  155. <required>false</required>
  156. <rtexprvalue>true</rtexprvalue>
  157. <description>Set optional message arguments for this tag, as a
  158. (comma-)delimited String (each String argument can contain JSP EL),
  159. an Object array (used as argument array), or a single Object (used
  160. as single argument).</description>
  161. </attribute>
  162. <attribute>
  163. <name>argumentSeparator</name>
  164. <required>false</required>
  165. <rtexprvalue>true</rtexprvalue>
  166. <description>The separator character to be used for splitting the
  167. arguments string value; defaults to a 'comma' (',').</description>
  168. </attribute>
  169. <attribute>
  170. <name>text</name>
  171. <required>false</required>
  172. <rtexprvalue>true</rtexprvalue>
  173. <description>Default text to output when a message for the given code
  174. could not be found. If both text and code are not set, the tag will
  175. output null.</description>
  176. </attribute>
  177. <attribute>
  178. <name>var</name>
  179. <required>false</required>
  180. <rtexprvalue>true</rtexprvalue>
  181. <description>The string to use when binding the result to the page,
  182. request, session or application scope. If not specified, the result
  183. gets outputted to the writer (i.e. typically directly to the JSP).</description>
  184. </attribute>
  185. <attribute>
  186. <name>scope</name>
  187. <required>false</required>
  188. <rtexprvalue>true</rtexprvalue>
  189. <description>The scope to use when exporting the result to a variable.
  190. This attribute is only used when var is also set. Possible values are
  191. page, request, session and application.</description>
  192. </attribute>
  193. <attribute>
  194. <name>htmlEscape</name>
  195. <required>false</required>
  196. <rtexprvalue>true</rtexprvalue>
  197. <description>Set HTML escaping for this tag, as boolean value.
  198. Overrides the default HTML escaping setting for the current page.</description>
  199. </attribute>
  200. <attribute>
  201. <name>javaScriptEscape</name>
  202. <required>false</required>
  203. <rtexprvalue>true</rtexprvalue>
  204. <description>Set JavaScript escaping for this tag, as boolean value. Default is false.</description>
  205. </attribute>
  206. </tag>
  207. <tag>
  208. <name>hasBindErrors</name>
  209. <tag-class>org.springframework.web.servlet.tags.BindErrorsTag</tag-class>
  210. <body-content>JSP</body-content>
  211. <description>
  212. Provides Errors instance in case of bind errors.
  213. The HTML escaping flag participates in a page-wide or application-wide setting
  214. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  215. </description>
  216. <variable>
  217. <name-given>errors</name-given>
  218. <variable-class>org.springframework.validation.Errors</variable-class>
  219. </variable>
  220. <attribute>
  221. <name>name</name>
  222. <required>true</required>
  223. <rtexprvalue>true</rtexprvalue>
  224. <description>The name of the bean in the request, that needs to be
  225. inspected for errors. If errors are available for this bean, they
  226. will be bound under the 'errors' key.</description>
  227. </attribute>
  228. <attribute>
  229. <name>htmlEscape</name>
  230. <required>false</required>
  231. <rtexprvalue>true</rtexprvalue>
  232. <description>Set HTML escaping for this tag, as boolean value.
  233. Overrides the default HTML escaping setting for the current page.</description>
  234. </attribute>
  235. </tag>
  236. <tag>
  237. <name>nestedPath</name>
  238. <tag-class>org.springframework.web.servlet.tags.NestedPathTag</tag-class>
  239. <body-content>JSP</body-content>
  240. <description>
  241. Sets a nested path to be used by the bind tag's path.
  242. </description>
  243. <variable>
  244. <name-given>nestedPath</name-given>
  245. <variable-class>java.lang.String</variable-class>
  246. </variable>
  247. <attribute>
  248. <name>path</name>
  249. <required>true</required>
  250. <rtexprvalue>true</rtexprvalue>
  251. <description>Set the path that this tag should apply. E.g. 'customer'
  252. to allow bind paths like 'address.street' rather than
  253. 'customer.address.street'.</description>
  254. </attribute>
  255. </tag>
  256. <tag>
  257. <name>bind</name>
  258. <tag-class>org.springframework.web.servlet.tags.BindTag</tag-class>
  259. <body-content>JSP</body-content>
  260. <description>
  261. Provides BindStatus object for the given bind path.
  262. The HTML escaping flag participates in a page-wide or application-wide setting
  263. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  264. </description>
  265. <variable>
  266. <name-given>status</name-given>
  267. <variable-class>org.springframework.web.servlet.support.BindStatus</variable-class>
  268. </variable>
  269. <attribute>
  270. <name>path</name>
  271. <required>true</required>
  272. <rtexprvalue>true</rtexprvalue>
  273. <description>The path to the bean or bean property to bind status
  274. information for. For instance account.name, company.address.zipCode
  275. or just employee. The status object will exported to the page scope,
  276. specifically for this bean or bean property</description>
  277. </attribute>
  278. <attribute>
  279. <name>ignoreNestedPath</name>
  280. <required>false</required>
  281. <rtexprvalue>true</rtexprvalue>
  282. <description>Set whether to ignore a nested path, if any. Default is to not ignore.</description>
  283. </attribute>
  284. <attribute>
  285. <name>htmlEscape</name>
  286. <required>false</required>
  287. <rtexprvalue>true</rtexprvalue>
  288. <description>Set HTML escaping for this tag, as boolean value. Overrides
  289. the default HTML escaping setting for the current page.</description>
  290. </attribute>
  291. </tag>
  292. <tag>
  293. <name>transform</name>
  294. <tag-class>org.springframework.web.servlet.tags.TransformTag</tag-class>
  295. <body-content>JSP</body-content>
  296. <description>
  297. Provides transformation of variables to Strings, using an appropriate
  298. custom PropertyEditor from BindTag (can only be used inside BindTag).
  299. The HTML escaping flag participates in a page-wide or application-wide setting
  300. (i.e. by HtmlEscapeTag or a 'defaultHtmlEscape' context-param in web.xml).
  301. </description>
  302. <attribute>
  303. <name>value</name>
  304. <required>true</required>
  305. <rtexprvalue>true</rtexprvalue>
  306. <description>The value to transform. This is the actual object you want
  307. to have transformed (for instance a Date). Using the PropertyEditor that
  308. is currently in use by the 'spring:bind' tag.</description>
  309. </attribute>
  310. <attribute>
  311. <name>var</name>
  312. <required>false</required>
  313. <rtexprvalue>true</rtexprvalue>
  314. <description>The string to use when binding the result to the page,
  315. request, session or application scope. If not specified, the result gets
  316. outputted to the writer (i.e. typically directly to the JSP).</description>
  317. </attribute>
  318. <attribute>
  319. <name>scope</name>
  320. <required>false</required>
  321. <rtexprvalue>true</rtexprvalue>
  322. <description>The scope to use when exported the result to a variable.
  323. This attribute is only used when var is also set. Possible values are
  324. page, request, session and application.</description>
  325. </attribute>
  326. <attribute>
  327. <name>htmlEscape</name>
  328. <required>false</required>
  329. <rtexprvalue>true</rtexprvalue>
  330. <description>Set HTML escaping for this tag, as boolean value. Overrides
  331. the default HTML escaping setting for the current page.</description>
  332. </attribute>
  333. </tag>
  334. </taglib>