powerparin / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

UrlParam array not sent to th server as expectation #250

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I used Connectoin object to make a request.

Client side:
UrlParam[] params = new UrlParam[2];
params [0] = new UrlParam("param", "value1");
params [1] = new UrlParam("param", "value2");

The server side:
String[] params= request.getParameterValues("param");

What is the expected output? What do you see instead?

params.length is 1 and its the last value "value2" 

I expected to get
params[0] is "value1"
params[1] is "value2" 

What version of the product are you using? On what operating system?
GWTExt 2.0.1 build at Mar 01 2008
ExtJS 2.0.1
OS Windwos XP Service Pack2

Please provide any additional information below.

Original issue reported on code.google.com by changhua...@gmail.com on 1 Mar 2008 at 8:09

GoogleCodeExporter commented 8 years ago
I try to add UrlParam(String, String[]) constructor to so solve it.

The server code:
String[] params= request.getParameterValues("param");
will get the String[] as expectation.

I'm not sure whether this will cause side effects of other classes.

Original comment by changhua...@gmail.com on 4 Mar 2008 at 3:56

Attachments: