Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use fn:replace to replace line break to <br>?

Status
Not open for further replies.

GoSooJJ

Programmer
Feb 24, 2001
76
US
Hi,

I'm trying to use JSTL function replace to replace line break to <br>. This is the code I have.

${fn:replace(row.ENTRY_DESC, &quot;\n&quot;, &quot;<br>&quot;)}

I have error code in this function. If I use regular replace function it works. Can someone explain what's difference here and can make jstl function to make work?

Thank you all.
 
K, i fixed this problem by using jakarta String custom tag. In fact, String custom tag very powerful and useful. If you are developing an application in JSP 2.0, I recommend you to use their custom tag.

Later all~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top