> bonjour
>
> your probleme :
>
> <form method="POST" action="...">
> Start Date
> <input type=text name="startDate" value="01" size=3 maxlength=2>dd
> <input type=text name="startDate" value="05" size=3 maxlength=2>mm
> <input type=text name="startDate" value="1970" size=5 maxlength=4>yyyy
> <input type="submit" value="Go">
> </form>
>
> is not a problem :
> I do that also, the same name, and it works well with the servlet
container
> I use : jrun, servletexec, tomcat etc ...
>
> You have to get an Enumeration from your parameters like that :
>
>   java.util.Enumeration en = req.getParameterNames();
>   if (en.hasMoreElements()) {
>       pw.print("<h2>Parametres re�us du client(Forme tableau):</h2>");
>       pw.print("<table>");
>       while (en.hasMoreElements()) {
>             String name = (String)en.nextElement();
>             String vals[] = (String []) req.getParameterValues(name);
>             if (vals != null) {
>                for (int i = 0; i<vals.length; i++) pw.print("<tr><td><b>"
+
> name + "</b>[" + i + "]<td>" + vals[i]);
>             }
>       }
>       pw.print("</table>");
>   }
>
> and you get the list :
> startDate[1]  = xxxxx
> startDate[2]  = yyyyy
> startDate[3]  = zzzzzz
>
> cordialement ..
>

___________________________________________________________________________
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