I have one big Form in JSP with Big <TextArea> element. User is trying to insert more paragraph.
But I need to compare the data between the request parameter value and XML content value for this element.
Please help how to handle carriage return and space problems in JDOM.
Thanks in Advance, LALITH
Joined: Jan 31, 2005
Can you be you be more specific an detail what you are trying to do. If you are trying to filter the textarea text, regular expressions would be the way to go.
Joined: Jul 11, 2001
Moving to XML forum...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
replaceAll() - Search for something and replace it trim() - Trim whitespace
Author and all-around good cowpoke
Joined: Mar 22, 2000
I'm with Joe on the use of regex expressions to modify text for XML - but it does get realllllly complicated. The first big question is - are you holding the text in a CDATA section or a plain element content? Second big question - is that text going to contain any characters special to XML - HTML tags, & etc.? Bill