PDA

View Full Version : send many many variable


zkaung
08-17-2005, 09:25 PM
on html i use <form></form> for send variable to jsp. I can send a lot of variables but on lzx I cannot. because lzx send variable on url (http://site/url?variable), i think length of url is limit and when i send variable have comma(',') lzx is error.
And on html I can send multivalue on one variable such as I can send all value in list to jsp but on lzx when I send all value in list its send variable on url but lzx use comma(',') seperate value.
Example
If value on list have 3 value (1,2,3)
On html when I call request.getParameterValues("variable") its return String[] is length is 3 (Array [1,2,3]). But on lzx when i call request.getParameterValues("variable") its return String[] but length is 1 (String (1,2,3)).

Can i send variable to jsp like form in html ?

hqm
08-18-2005, 06:44 AM
You need to set the query method type to POST to get the LFC runtime to use HTTP POST.

For a dataset foo you can say

foo.setQueryType("POST")

zkaung
08-18-2005, 09:23 PM
foo.setQueryType("POST") cannot solve my problem because url is "http://site/url?variable=12345". But if I use form on http url is "http://site/url". I want to send request url to server like form on http.
Thank you