Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Control M characters from textarea data

 
Satish Kulkarni
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic