This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Searching for string usign JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Searching for string usign JSTL" Watch "Searching for string usign JSTL" New topic
Author

Searching for string usign JSTL

Fabio Fonseca
Greenhorn

Joined: Jan 19, 2006
Posts: 29
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??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

As per forum instructions, please indicate the versions of JSP and the JSTL that you are using.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Fabio Fonseca
Greenhorn

Joined: Jan 19, 2006
Posts: 29
JSP - 2.0
JSTL - 1.1

[ July 20, 2006: Message edited by: Fabio Fonseca ]
[ July 20, 2006: Message edited by: Fabio Fonseca ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Look up the fn EL functions of the JSTL 1.1 in the JSTL 1.1 Specification. They're primarily focused on string manipulation.
 
wood burning stoves
 
subject: Searching for string usign JSTL
 
Similar Threads
Token session Problem
unable to update Div tag.
Program: Change Due/Tendered
html-el:select embeded in js, what should I do to let it runing or not Unterminated String Constant
Say 4b line breaks