hi  kacem,

Answer to ur questions

1.There is no limitation on no. of parameter while ur using Post method.

2.req.getParameter("arg") will return an array of no. only when the arg. is
repeated in the html file ie., same name to more than
1 object.

3.u can use the Double class  (ie) wrapper class for converting ur string to
double i hope it will work well

Try....

-siva baskar

> -----Original Message-----
> From: Foudili Kacem [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, August 14, 2000 5:36 PM
> To:   [EMAIL PROTECTED]
> Subject:      Strange behaviour? getParameter again :-)
>
> Hi all,
>   Sorry if this topic was discussed before. It will be great if somebody
>   can help me.
>
>   I have a form with something like 60 textField and one button:
>   <FORM NAME="myform" ACTION=http://localhost/servlet/updater METHOD=POST>
>
>   <INPUT type=text size=12 maxlength=10 name="fld0" value="1.0000">
>   ...
>   <INPUT type=text size=12 maxlength=10 name="fld34" value="1.00">
>   ....
>   <INPUT TYPE=SUBMIT NAME=update VALUE="Update">
>   </FORM>
>
>
>   I want to save the new (double) values entered in the text fields.
>   My questions are :
>
>   1- Is there any limitation in the number of parameters in a form ?
>   2- I had a strange behaviour using the getParameter method :
>
>   1.00 is the default value. I enter 24 as new value.
>   when I call getParameter("fld34") it returns 1.00 , 24 !!! ( so my
>   method to convert it to a double value doesn't work )
>
>   And when I use getParameterValues("fld34") it return an array of two
>   elements 1.00 and 24 !!
>   All I want is to get new entered value ...
>   Is there a clean way to do it ??
>
>   Thanks a lot.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to