I've a problem with array on WebInterface:
//- cmd.dt
....
section
form(method='post',action='setdo')
input(name='uscite_0',type='checkbox')
input(name='uscite_1',type='checkbox')
button(type='submit') Set
// web.d
private final class WaltWeb {
....
// POST /setdo
@method(HTTPMethod.POST)
@path("setdo")
void setDgtOut(bool[] uscite) {
redirect("/");
}
when I click on submit, nothing happens.
I use the array mapping:
An array of values is mapped to
_ , where index denotes the zero based index of the array entry.
so, uscite_0 and uscite_1 should be mapped into uscite[0] and uscite[1]....
where I 'm wrong ?
Thanks!