cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Re: [C2] http request parameters
Date Fri, 22 Feb 2002 08:48:38 GMT
On 21.Feb.2002 -- 05:59 PM, Christian Joelly wrote:
> <form name="chooser" method="post">
> 	<input type="hidden" name="timestamp" value="1014310116667">
> 	<input type="hidden" name="oldauftrag" value="U019B20">  
> 	<font class="form">Auftrag:</font>
> 	<input type="text" name="auftrag" value="U019B20" length="20" class="field-required">
> 	<font class="form">Produkt:</font>
> 	<input type="text" name="produkt" value="LT5" length="20" class="field">
> 	<font class="form">Liste:</font>
> 	<select class="field" name="report">
> 		<option value="istzeit" selected>Ist-Zeiten</option>
> 		<option value="istzeit-kst">Ist-Zeiten / Kst.</option>
> 	</select>
> 	<input class="button" type="submit" name="Start" value="Start">
> 	<input class="button" type="reset" name="Reset" value="Reset">  
> </form>

> PARAM: 'report' VALUES: '[istzeit], [istzeit]'
> PARAM: 'produkt' VALUES: '[LT5], [LT5]'
> PARAM: 'auftrag' VALUES: '[U019B20], [U019B21]'
> PARAM: 'oldauftrag' VALUES: '[U019B20], [U019B20]'
> PARAM: 'Start' VALUES: '[Start]'
> PARAM: 'timestamp' VALUES: '[1014310085064], [1014310106862]'

> and why are the parameters filled with 2 values?

I don't think it's Cocoon related. When two or more form controls
share the same name, they appear as an array of values to your
application. Actually, by getParameter you'll get only the first while
getParameterValues returns an array.

So, I cannot answer why your browser posts two values back (check by
setting method to "get") as your form seems to be OK in this
respect. It might be related to your javasript code, though...


C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message