java - JSTL format String with Mask -


is know how format string mask using jstl tags? let want show confidential credit card number in list , want show first 4 digit , else masked * :

1234-****-****-**** 

i don't think there out of box this. fmt namespaced tags formatting numbers , dates , i18n stuff, nothing string formatting. if don't want doing in presentation layer scriptlets or function invocations, might want consider adding model property obfuscated cc number way can formatting in java easier.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -