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.

[416 byte] By [PavanKumarGuptaa] at [2007-10-3 1:47:52]
# 1
Interesting. If you use getParameterValues(), does that give each line in a seperate array index?
gimbal2a at 2007-7-14 18:46:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
hi,thanks for the reply. i tried with request.getParameterValues("addr");but, it doesn't work. the array size is '1'.regardspavan.
PavanKumarGuptaa at 2007-7-14 18:46:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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?

rzannera at 2007-7-14 18:46:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

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.

PavanKumarGuptaa at 2007-7-14 18:46:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
<input type="textarea" name="sudha"> u try like this .I think now u will get whole string what u typed.
sudha_1234a at 2007-7-14 18:46:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...