Scan through them carefully though, as I know things like the Submit button count as an element and possibly some other unnecessary things.
Regards, Peter Dolukhanov -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Luis Javier Beltr�n Sent: 29 May 2002 18:27 To: [EMAIL PROTECTED] Subject: Fw: Re: count form elements This code can help get the number of parameters passed (that could be equivalent to the number of valid form elements submitted): java.util.Enumeration enum = request.getParameterNames(); int c=0; for ( ; enum.hasMoreElements(); enum.nextElement() ) ++c; Luis Javier ----- Original Message ----- From: "Jose Andr�s P�rez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 8:38 AM Subject: Re: count form elements > I think that there is not any utility in Java that can give you the number > of forms. Otherwise, you can control it defining a hidden input and set it > using javascript. > > > > -----Original Message----- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Ronny Van der Perre > > [Smart IT Systems] > > Sent: mi�rcoles, 29 de mayo de 2002 15:24 > > To: [EMAIL PROTECTED] > > Subject: count form elements > > > > > > How can I count how many form elements are submitted ? > > > > I am looking for the JSP-equivalent of the ASP "Request.Form.Count" > > > > > > > > thanks > > > > ================================================================== > > ========= > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set > > JSP-INTEREST DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > ======================================================================== === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com ======================================================================== === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
