当前位置: 技术问答>java相关
关于jsp中字符串的替换………………
来源: 互联网 发布时间:2015-01-15
本文导语: 我要把数据库中的一篇文章显示在网页上,先要做一下替换,即把换行替换成,相当于asp中的replace(text,vbcrlf,),那么在jsp中应该是: replace(text,"nr","") or replace(text,"n","") or replace(text,"rn","") 其中replace是自己写的一个字...
我要把数据库中的一篇文章显示在网页上,先要做一下替换,即把换行替换成
,相当于asp中的replace(text,vbcrlf,
),那么在jsp中应该是:
replace(text,"nr","
")
or
replace(text,"n","
")
or
replace(text,"rn","
")
其中replace是自己写的一个字符串替换函数。谢谢!
,相当于asp中的replace(text,vbcrlf,
),那么在jsp中应该是:
replace(text,"nr","
")
or
replace(text,"n","
")
or
replace(text,"rn","
")
其中replace是自己写的一个字符串替换函数。谢谢!
|
replace(text,"n","
")
")