aspose file tools*
The moose likes Struts and the fly likes Control M characters from textarea data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Control M characters from textarea data" Watch "Control M characters from textarea data" New topic
Author

Control M characters from textarea data

Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
Hi,
I am using Struts 1.1 with iPlanet 6.1 on Solaris Platform.
I have a form with a textarea and in my action when I get the data entered in the form and log it to the log file. But when i do a vi on the logfile for every newline entry in the textarea I see a control-M characters like below

Text entered in the Textarea
---------------------------
testing steps:^M
1. Login^M
2.Click on Monitoring link^M
3. Verify contents and logout^M

Text in the log file
--------------------
testing steps:^M
1. Login^M
2.Click on Monitoring link^M
3. Verify contents and logout^M

From where is this controm-M characters appearing?
Please help.

Regards,
Satish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Control M characters from textarea data