spring.tld 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
  5. version="2.0">
  6. <description>Spring Framework JSP Tag Library</description>
  7. <tlib-version>3.0</tlib-version>
  8. <short-name>spring</short-name>
  9. <uri>http://www.springframework.org/tags</uri>
  10. <tag>
  11. <description>
  12. Sets default HTML escape value for the current page.
  13. Overrides a "defaultHtmlEscape" context-param in web.xml, if any.
  14. </description>
  15. <name>htmlEscape</name>
  16. <tag-class>org.springframework.web.servlet.tags.HtmlEscapeTag</tag-class>
  17. <body-content>JSP</body-content>
  18. <attribute>
  19. <description>Set the default value for HTML escaping, to be put
  20. into the current PageContext.</description>
  21. <name>defaultHtmlEscape</name>
  22. <required>true</required>
  23. <rtexprvalue>true</rtexprvalue>
  24. </attribute>
  25. </tag>
  26. <tag>
  27. <description>
  28. Escapes its enclosed body content, applying HTML escaping and/or JavaScript escaping.
  29. The HTML escaping flag participates in a page-wide or application-wide setting
  30. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  31. </description>
  32. <name>escapeBody</name>
  33. <tag-class>org.springframework.web.servlet.tags.EscapeBodyTag</tag-class>
  34. <body-content>JSP</body-content>
  35. <attribute>
  36. <description>Set HTML escaping for this tag, as boolean value. Overrides the
  37. default HTML escaping setting for the current page.</description>
  38. <name>htmlEscape</name>
  39. <required>false</required>
  40. <rtexprvalue>true</rtexprvalue>
  41. </attribute>
  42. <attribute>
  43. <description>Set JavaScript escaping for this tag, as boolean value.
  44. Default is false.</description>
  45. <name>javaScriptEscape</name>
  46. <required>false</required>
  47. <rtexprvalue>true</rtexprvalue>
  48. </attribute>
  49. </tag>
  50. <tag>
  51. <description>
  52. Retrieves the message with the given code, or text if code isn't resolvable.
  53. The HTML escaping flag participates in a page-wide or application-wide setting
  54. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  55. </description>
  56. <name>message</name>
  57. <tag-class>org.springframework.web.servlet.tags.MessageTag</tag-class>
  58. <body-content>JSP</body-content>
  59. <attribute>
  60. <description>A MessageSourceResolvable argument (direct or through JSP EL).
  61. Fits nicely when used in conjunction with Spring's own validation error
  62. classes which all implement the MessageSourceResolvable interface. For
  63. example, this allows you to iterate over all of the errors in a form,
  64. passing each error (using a runtime expression) as the value of this
  65. 'message' attribute, thus effecting the easy display of such error
  66. messages.</description>
  67. <name>message</name>
  68. <required>false</required>
  69. <rtexprvalue>true</rtexprvalue>
  70. </attribute>
  71. <attribute>
  72. <description>The code (key) to use when looking up the message.
  73. If code is not provided, the text attribute will be used.</description>
  74. <name>code</name>
  75. <required>false</required>
  76. <rtexprvalue>true</rtexprvalue>
  77. </attribute>
  78. <attribute>
  79. <description>Set optional message arguments for this tag, as a
  80. (comma-)delimited String (each String argument can contain JSP EL),
  81. an Object array (used as argument array), or a single Object (used
  82. as single argument).</description>
  83. <name>arguments</name>
  84. <required>false</required>
  85. <rtexprvalue>true</rtexprvalue>
  86. </attribute>
  87. <attribute>
  88. <description>The separator character to be used for splitting the
  89. arguments string value; defaults to a 'comma' (',').</description>
  90. <name>argumentSeparator</name>
  91. <required>false</required>
  92. <rtexprvalue>true</rtexprvalue>
  93. </attribute>
  94. <attribute>
  95. <description>Default text to output when a message for the given code
  96. could not be found. If both text and code are not set, the tag will
  97. output null.</description>
  98. <name>text</name>
  99. <required>false</required>
  100. <rtexprvalue>true</rtexprvalue>
  101. </attribute>
  102. <attribute>
  103. <description>The string to use when binding the result to the page,
  104. request, session or application scope. If not specified, the result
  105. gets outputted to the writer (i.e. typically directly to the JSP).</description>
  106. <name>var</name>
  107. <required>false</required>
  108. <rtexprvalue>true</rtexprvalue>
  109. </attribute>
  110. <attribute>
  111. <description>The scope to use when exporting the result to a variable.
  112. This attribute is only used when var is also set. Possible values are
  113. page, request, session and application.</description>
  114. <name>scope</name>
  115. <required>false</required>
  116. <rtexprvalue>true</rtexprvalue>
  117. </attribute>
  118. <attribute>
  119. <description>Set HTML escaping for this tag, as boolean value.
  120. Overrides the default HTML escaping setting for the current page.</description>
  121. <name>htmlEscape</name>
  122. <required>false</required>
  123. <rtexprvalue>true</rtexprvalue>
  124. </attribute>
  125. <attribute>
  126. <description>Set JavaScript escaping for this tag, as boolean value. Default is false.</description>
  127. <name>javaScriptEscape</name>
  128. <required>false</required>
  129. <rtexprvalue>true</rtexprvalue>
  130. </attribute>
  131. </tag>
  132. <tag>
  133. <description>
  134. Retrieves the theme message with the given code, or text if code isn't resolvable.
  135. The HTML escaping flag participates in a page-wide or application-wide setting
  136. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  137. </description>
  138. <name>theme</name>
  139. <tag-class>org.springframework.web.servlet.tags.ThemeTag</tag-class>
  140. <body-content>JSP</body-content>
  141. <attribute>
  142. <description>A MessageSourceResolvable argument (direct or through JSP EL).</description>
  143. <name>message</name>
  144. <required>false</required>
  145. <rtexprvalue>true</rtexprvalue>
  146. </attribute>
  147. <attribute>
  148. <description>The code (key) to use when looking up the message.
  149. If code is not provided, the text attribute will be used.</description>
  150. <name>code</name>
  151. <required>false</required>
  152. <rtexprvalue>true</rtexprvalue>
  153. </attribute>
  154. <attribute>
  155. <description>Set optional message arguments for this tag, as a
  156. (comma-)delimited String (each String argument can contain JSP EL),
  157. an Object array (used as argument array), or a single Object (used
  158. as single argument).</description>
  159. <name>arguments</name>
  160. <required>false</required>
  161. <rtexprvalue>true</rtexprvalue>
  162. </attribute>
  163. <attribute>
  164. <description>The separator character to be used for splitting the
  165. arguments string value; defaults to a 'comma' (',').</description>
  166. <name>argumentSeparator</name>
  167. <required>false</required>
  168. <rtexprvalue>true</rtexprvalue>
  169. </attribute>
  170. <attribute>
  171. <description>Default text to output when a message for the given code
  172. could not be found. If both text and code are not set, the tag will
  173. output null.</description>
  174. <name>text</name>
  175. <required>false</required>
  176. <rtexprvalue>true</rtexprvalue>
  177. </attribute>
  178. <attribute>
  179. <description>The string to use when binding the result to the page,
  180. request, session or application scope. If not specified, the result
  181. gets outputted to the writer (i.e. typically directly to the JSP).</description>
  182. <name>var</name>
  183. <required>false</required>
  184. <rtexprvalue>true</rtexprvalue>
  185. </attribute>
  186. <attribute>
  187. <description>The scope to use when exporting the result to a variable.
  188. This attribute is only used when var is also set. Possible values are
  189. page, request, session and application.</description>
  190. <name>scope</name>
  191. <required>false</required>
  192. <rtexprvalue>true</rtexprvalue>
  193. </attribute>
  194. <attribute>
  195. <description>Set HTML escaping for this tag, as boolean value.
  196. Overrides the default HTML escaping setting for the current page.</description>
  197. <name>htmlEscape</name>
  198. <required>false</required>
  199. <rtexprvalue>true</rtexprvalue>
  200. </attribute>
  201. <attribute>
  202. <description>Set JavaScript escaping for this tag, as boolean value. Default is false.</description>
  203. <name>javaScriptEscape</name>
  204. <required>false</required>
  205. <rtexprvalue>true</rtexprvalue>
  206. </attribute>
  207. </tag>
  208. <tag>
  209. <description>
  210. Provides Errors instance in case of bind errors.
  211. The HTML escaping flag participates in a page-wide or application-wide setting
  212. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  213. </description>
  214. <name>hasBindErrors</name>
  215. <tag-class>org.springframework.web.servlet.tags.BindErrorsTag</tag-class>
  216. <body-content>JSP</body-content>
  217. <variable>
  218. <name-given>errors</name-given>
  219. <variable-class>org.springframework.validation.Errors</variable-class>
  220. </variable>
  221. <attribute>
  222. <description>The name of the bean in the request, that needs to be
  223. inspected for errors. If errors are available for this bean, they
  224. will be bound under the 'errors' key.</description>
  225. <name>name</name>
  226. <required>true</required>
  227. <rtexprvalue>true</rtexprvalue>
  228. </attribute>
  229. <attribute>
  230. <description>Set HTML escaping for this tag, as boolean value.
  231. Overrides the default HTML escaping setting for the current page.</description>
  232. <name>htmlEscape</name>
  233. <required>false</required>
  234. <rtexprvalue>true</rtexprvalue>
  235. </attribute>
  236. </tag>
  237. <tag>
  238. <description>
  239. Sets a nested path to be used by the bind tag's path.
  240. </description>
  241. <name>nestedPath</name>
  242. <tag-class>org.springframework.web.servlet.tags.NestedPathTag</tag-class>
  243. <body-content>JSP</body-content>
  244. <variable>
  245. <name-given>nestedPath</name-given>
  246. <variable-class>java.lang.String</variable-class>
  247. </variable>
  248. <attribute>
  249. <description>Set the path that this tag should apply. E.g. 'customer'
  250. to allow bind paths like 'address.street' rather than
  251. 'customer.address.street'.</description>
  252. <name>path</name>
  253. <required>true</required>
  254. <rtexprvalue>true</rtexprvalue>
  255. </attribute>
  256. </tag>
  257. <tag>
  258. <description>
  259. Provides BindStatus object for the given bind path.
  260. The HTML escaping flag participates in a page-wide or application-wide setting
  261. (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
  262. </description>
  263. <name>bind</name>
  264. <tag-class>org.springframework.web.servlet.tags.BindTag</tag-class>
  265. <body-content>JSP</body-content>
  266. <variable>
  267. <name-given>status</name-given>
  268. <variable-class>org.springframework.web.servlet.support.BindStatus</variable-class>
  269. </variable>
  270. <attribute>
  271. <description>The path to the bean or bean property to bind status
  272. information for. For instance account.name, company.address.zipCode
  273. or just employee. The status object will exported to the page scope,
  274. specifically for this bean or bean property</description>
  275. <name>path</name>
  276. <required>true</required>
  277. <rtexprvalue>true</rtexprvalue>
  278. </attribute>
  279. <attribute>
  280. <description>Set whether to ignore a nested path, if any. Default is to not ignore.</description>
  281. <name>ignoreNestedPath</name>
  282. <required>false</required>
  283. <rtexprvalue>true</rtexprvalue>
  284. </attribute>
  285. <attribute>
  286. <description>Set HTML escaping for this tag, as boolean value. Overrides
  287. the default HTML escaping setting for the current page.</description>
  288. <name>htmlEscape</name>
  289. <required>false</required>
  290. <rtexprvalue>true</rtexprvalue>
  291. </attribute>
  292. </tag>
  293. <tag>
  294. <description>
  295. Provides transformation of variables to Strings, using an appropriate
  296. custom PropertyEditor from BindTag (can only be used inside BindTag).
  297. The HTML escaping flag participates in a page-wide or application-wide setting
  298. (i.e. by HtmlEscapeTag or a 'defaultHtmlEscape' context-param in web.xml).
  299. </description>
  300. <name>transform</name>
  301. <tag-class>org.springframework.web.servlet.tags.TransformTag</tag-class>
  302. <body-content>JSP</body-content>
  303. <attribute>
  304. <description>The value to transform. This is the actual object you want
  305. to have transformed (for instance a Date). Using the PropertyEditor that
  306. is currently in use by the 'spring:bind' tag.</description>
  307. <name>value</name>
  308. <required>true</required>
  309. <rtexprvalue>true</rtexprvalue>
  310. </attribute>
  311. <attribute>
  312. <description>The string to use when binding the result to the page,
  313. request, session or application scope. If not specified, the result gets
  314. outputted to the writer (i.e. typically directly to the JSP).</description>
  315. <name>var</name>
  316. <required>false</required>
  317. <rtexprvalue>true</rtexprvalue>
  318. </attribute>
  319. <attribute>
  320. <description>The scope to use when exported the result to a variable.
  321. This attribute is only used when var is also set. Possible values are
  322. page, request, session and application.</description>
  323. <name>scope</name>
  324. <required>false</required>
  325. <rtexprvalue>true</rtexprvalue>
  326. </attribute>
  327. <attribute>
  328. <description>Set HTML escaping for this tag, as boolean value. Overrides
  329. the default HTML escaping setting for the current page.</description>
  330. <name>htmlEscape</name>
  331. <required>false</required>
  332. <rtexprvalue>true</rtexprvalue>
  333. </attribute>
  334. </tag>
  335. <tag>
  336. <description>URL tag based on the JSTL c:url tag. This variant is fully
  337. backwards compatible with the standard tag. Enhancements include support
  338. for URL template parameters.</description>
  339. <name>url</name>
  340. <tag-class>org.springframework.web.servlet.tags.UrlTag</tag-class>
  341. <body-content>JSP</body-content>
  342. <attribute>
  343. <description>The URL to build. This value can include template place holders
  344. that are replaced with the URL encoded value of the named parameter. Parameters
  345. must be defined using the param tag inside the body of this tag.</description>
  346. <name>value</name>
  347. <required>true</required>
  348. <rtexprvalue>true</rtexprvalue>
  349. </attribute>
  350. <attribute>
  351. <description>Specifies a remote application context path. The default is the
  352. current application context path.</description>
  353. <name>context</name>
  354. <required>false</required>
  355. <rtexprvalue>true</rtexprvalue>
  356. </attribute>
  357. <attribute>
  358. <description>The name of the variable to export the URL value to.</description>
  359. <name>var</name>
  360. <required>false</required>
  361. <rtexprvalue>true</rtexprvalue>
  362. </attribute>
  363. <attribute>
  364. <description>The scope for the var. 'application', 'session', 'request' and
  365. 'page' scopes are supported. Defaults to page scope. This attribute has no
  366. effect unless the var attribute is also defined.</description>
  367. <name>scope</name>
  368. <required>false</required>
  369. <rtexprvalue>true</rtexprvalue>
  370. </attribute>
  371. <attribute>
  372. <description>Set HTML escaping for this tag, as a boolean value. Overrides the
  373. default HTML escaping setting for the current page.</description>
  374. <name>htmlEscape</name>
  375. <required>false</required>
  376. <rtexprvalue>true</rtexprvalue>
  377. </attribute>
  378. <attribute>
  379. <description>Set JavaScript escaping for this tag, as a boolean value.
  380. Default is false.</description>
  381. <name>javaScriptEscape</name>
  382. <required>false</required>
  383. <rtexprvalue>true</rtexprvalue>
  384. </attribute>
  385. </tag>
  386. <tag>
  387. <description>Parameter tag based on the JSTL c:param tag. The sole purpose is to
  388. support params inside the spring:url tag.</description>
  389. <name>param</name>
  390. <tag-class>org.springframework.web.servlet.tags.ParamTag</tag-class>
  391. <body-content>JSP</body-content>
  392. <attribute>
  393. <description>The name of the parameter.</description>
  394. <name>name</name>
  395. <required>true</required>
  396. <rtexprvalue>true</rtexprvalue>
  397. </attribute>
  398. <attribute>
  399. <description>The value of the parameter.</description>
  400. <name>value</name>
  401. <required>false</required>
  402. <rtexprvalue>true</rtexprvalue>
  403. </attribute>
  404. </tag>
  405. <tag>
  406. <description>Evaluates a Spring expression (SpEL) and either prints the result or assigns it to a variable.</description>
  407. <name>eval</name>
  408. <tag-class>org.springframework.web.servlet.tags.EvalTag</tag-class>
  409. <body-content>JSP</body-content>
  410. <attribute>
  411. <description>The expression to evaluate.</description>
  412. <name>expression</name>
  413. <required>true</required>
  414. <rtexprvalue>true</rtexprvalue>
  415. </attribute>
  416. <attribute>
  417. <description>The name of the variable to export the evaluation result to.</description>
  418. <name>var</name>
  419. <required>false</required>
  420. <rtexprvalue>true</rtexprvalue>
  421. </attribute>
  422. <attribute>
  423. <description>The scope for the var. 'application', 'session', 'request' and
  424. 'page' scopes are supported. Defaults to page scope. This attribute has no
  425. effect unless the var attribute is also defined.</description>
  426. <name>scope</name>
  427. <required>false</required>
  428. <rtexprvalue>true</rtexprvalue>
  429. </attribute>
  430. <attribute>
  431. <description>Set HTML escaping for this tag, as a boolean value. Overrides the
  432. default HTML escaping setting for the current page.</description>
  433. <name>htmlEscape</name>
  434. <required>false</required>
  435. <rtexprvalue>true</rtexprvalue>
  436. </attribute>
  437. <attribute>
  438. <description>Set JavaScript escaping for this tag, as a boolean value. Default is false.</description>
  439. <name>javaScriptEscape</name>
  440. <required>false</required>
  441. <rtexprvalue>true</rtexprvalue>
  442. </attribute>
  443. </tag>
  444. </taglib>