codeuniv

Custom EL Function - TAGLIB

Sep 25th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. See
  2. https://stackoverflow.com/questions/35606551/jstl-localdatetime-format#35607225
  3. https://bitbucket.org/lrn_examples/custom-el_function
  4.  
  5.  
  6. <?xml version="1.0" encoding="UTF-8" ?>
  7. <taglib
  8. xmlns="http://java.sun.com/xml/ns/javaee"
  9. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
  11. version="2.1">
  12.  
  13. <tlib-version>1.0</tlib-version>
  14. <short-name>Custom_Functions</short-name>
  15. <uri>http://example.com/functions</uri>
  16.  
  17. <function>
  18. <name>formatLocalDateTime</name>
  19. <function-class>com.example.Dates</function-class>
  20. <function-signature>java.lang.String formatLocalDateTime(java.time.LocalDateTime, java.lang.String)</function-signature>
  21. </function>
  22. </taglib>
Add Comment
Please, Sign In to add comment