String Tag Library 1.0.1
Jakarta's String Tag Library version 1.0.1 was released about a month ago. I found out today. I'm telling you here because you might be able to use it if you need to manipulate Strings for your UI. The only tag I'm using (from this library) <s:replace>, which can be very handy indeed. For instance, a common task with JSPs is the need to replace a new-line (\n) with an HTML new-line (<br />). With the String TL, it's easy (JSP 2.0 Syntax):
<s:replace replace="NL" with="<br />NL" newlineToken="NL">${myForm.text}</s:replace>
Posted by Scott Farquhar on April 03, 2003 at 12:00 AM MST #