Hi all
Could you please help me with a small problem that I am having? I am trying to use JSP to write a online guestbook for my site. I am using 'request.getParameter()' to get the user input and then store it in a DB. The problem is that I am using a 'textarea' for 'Message' Portion of the entry. When i do this
String msg = request.getParameter("msg");
The string 'msg' stores the message but without the 'newlines'. It all appears as one big line. Can anyone guide me as to how I can fix this problem?
Muchos gracias for your time!
Thanks
Jagga
Could you please help me with a small problem that I am having? I am trying to use JSP to write a online guestbook for my site. I am using 'request.getParameter()' to get the user input and then store it in a DB. The problem is that I am using a 'textarea' for 'Message' Portion of the entry. When i do this
String msg = request.getParameter("msg");
The string 'msg' stores the message but without the 'newlines'. It all appears as one big line. Can anyone guide me as to how I can fix this problem?
Muchos gracias for your time!
Thanks
Jagga