problem with getting multiline text with request.getParameter()
hi all,
in my UI i have a field with text area. in that one i enabled the multiline option.
but, at the server end, when i tried to get the text of that text area, by using
request.getParameter("address");
its, retreiving only the first line and not the entire text. its truncating the text at new line character.
how to acieve this one.
regards
pavan.
Hi,
what do you mean by "enabled the multiline option"? A textarea is "multi-lined" by default - there is no such option on the HTML input element called <textarea>. You can specify the number of rows displayed in the viewport (number of visible rows), but nothing else regarding "multiline".
When retrieving the value of such a textarea on the server, all the lines are put into one String, separated by a space.
Cheers,
Ren?
hi,
thanks,
here i'm using opnelaszlo for designing user-interface. and in that we need to set enabled=true for the text element.
in that one, before sending request to the server i tested the address field (by using some debug statements), it displayed all the lines of text. and on server when i tried with request.getParameter("address"), i'm getting only the first line.
regards
pavan.