/JSTL-fn-extended

Extended expression language functions for JSTL

Primary LanguageJavaApache License 2.0Apache-2.0

Extended JSTL expression language functions

The Extended Tag Library is a collection of tags and functions to be used in addition to the Standard tag library.

To Use

Copy extended.jar from lib into your application lib folder.

API

Commons Lang StringUtils functions

  • capitalize =>
    java.lang.String capitalize(java.lang.String)
  • uncapitalize =>
    java.lang.String uncapitalize(java.lang.String)
  • lastIndexOf =>
    int lastIndexOf(java.lang.String, java.lang.String)
  • left =>
    java.lang.String left(java.lang.String, int)
  • mid =>
    java.lang.String mid(java.lang.String, int)
  • right =>
    java.lang.String right(java.lang.String, int)
  • repeat =>
    java.lang.String repeat(java.lang.String, int)
  • leftPad =>
    java.lang.String leftPad(java.lang.String, int, java.lang.String)
  • rightPad =>
    java.lang.String rightPad(java.lang.String, int, java.lang.String)
  • center =>
    java.lang.String center(java.lang.String, int, java.lang.String)
  • abbreviate =>
    java.lang.String abbreviate(java.lang.String, int)

Commons Lang WordUtils functions

  • capitalizeAllWords =>
    java.lang.String capitalize(java.lang.String)

Regex String Replacement

  • replaceAll =>
    java.lang.String replaceAll(java.lang.String, java.lang.String, java.lang.String)
  • replaceFirst =>
    java.lang.String replaceFirst(java.lang.String, java.lang.String, java.lang.String)

java.lang.Math functions

  • ceil =>
    double ceil(double)
  • floor =>
    double floor(double)
  • round =>
    long round(double)
  • sqrt =>
    double sqrt(double)

java.lang.System

  • env =>
    java.lang.String getenv(java.lang.String)
  • property =>
    java.lang.String property(java.lang.String)

java.net.URLEncoder/URLDecoder

  • encode =>
    java.lang.String encode(java.lang.String, java.lang.String)
  • decode =>
    java.lang.String decode(java.lang.String, java.lang.String)

MD5 Hex encoding

  • md5hex =>
    java.lang.String md5hex(java.lang.String)

Weak URL fetch and cache

  • fetchUrl =>
    java.lang.String fetch(java.lang.String)

To build

./build.sh