I’m designing JSP application and I want to print user input. I’m in need of something like <c:out> tag but then one that allows user to do some formatting.
To start, I want to translate \n to <br /> but I still need all the XML escaping <c:out> provides. Then I realized that it would be nice to allow more formating, like BBcode or Wiki syntax.
Is there any JSP tag library, which allows that?
why not create your own tags, with the use of xml
http://www.java2s.com/Code/Java/JSP/Createyourowntagacustomtagbody.htm
XML file:
And then you write a little java code of what you want to achive !
e.g. corresponding to tag above simple java code example: