From: Colin T. <col...@ou...> - 2006-03-24 13:33:50
|
Naomi Miles wrote: > Specifically, I am trying to return > checkboxes with the same name, which normally would be returned into a > String Array by the HttpRequest.getParameterValues method. Using the > bod Request.getParameterValues() method only returns one of the selected > checkboxes. That's odd. I've used multiple checkboxes with the same name, and they appear (or not) in an array as you'd expect. I'll see if we have modified any relevant code in WebLearn. > In Request.java it checks to see whether the form has enctype of > mutipart and then toddles off to a method called readMultiPart() (nice > naming). I suspect that this is where the problem lies, as the > Hashtable 'data' has parameters put into it bsed on their names, and > obviously in this case there could potentially be more that one > parameter with the same name. > > Any ideas/opinions/potential solutions? - I don't wanna just hack at it > as I don't necessarily fully understand what's going on in the method > and I'll probably break something.. > > Cheers, > Naomi. -- ____________________________________ Colin Tatham VLE Team Oxford University Computing Services http://www.oucs.ox.ac.uk/ltg/vle/ http://bodington.org |