Forums Register Login

Searching for string usign JSTL

+Pie Number of slices to send: Send
Is it possible to search & replace line breaks using JSTL?

I want to populate a JS array with code coming from the database, but there is some text which comes with line breaks within it. Is there any way to search for the line breaks and remove then, so the JS can read it all alright??
+Pie Number of slices to send: Send
As per forum instructions, please indicate the versions of JSP and the JSTL that you are using.
+Pie Number of slices to send: Send
JSP - 2.0
JSTL - 1.1

[ July 20, 2006: Message edited by: Fabio Fonseca ]
[ July 20, 2006: Message edited by: Fabio Fonseca ]
+Pie Number of slices to send: Send
Look up the fn EL functions of the JSTL 1.1 in the JSTL 1.1 Specification. They're primarily focused on string manipulation.
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1460 times.
Similar Threads
unable to update Div tag.
Program: Change Due/Tendered
Token session Problem
Say 4b line breaks
html-el:select embeded in js, what should I do to let it runing or not Unterminated String Constant
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:53:55.