tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart N. Locanthi" <b...@sabl.com>
Subject re: setProperty and arrays
Date Fri, 21 Jul 2000 15:53:23 GMT
this *almost* works. i'm pleasantly surprised that it tries.

however, if the first text input is blank, the setGrade() doesn't get
called.

i presume this is a bug. possibly in my netscape 4.73 or my mid-june
build of tomcat.

> Date: Thu, 20 Jul 2000 13:19:05 -0700 (PDT)
> To: tomcat-user@jakarta.apache.org
> From: "David M. Holmes" <david_m_holmes@yahoo.com>
> Subject: RE: setProperty and arrays
> Message-ID: <20000720201905.9657.qmail@web1004.mail.yahoo.com>
> 
> 1 is correct, the browser will basically submit an array of values for the
> same-named elements. I
> just verified this.
> 
> # HTML
> <form action="test.jsp" method="post">
> <input type="text" name="grade" value="" size="10"><Br>
> <input type="text" name="grade" value="" size="10"><Br>
> <input type="text" name="grade" value="" size="10"><Br>
> <input type="text" name="grade" value="" size="10"><Br>
> <input type="submit" name="submit" value="Submit">
> </form>
> 
> # JSP
> <jsp:useBean id="grades" class="test.Grades" scope="request">
>         <jsp:setProperty name="grades" property="*"/>
> </jsp:useBean>
>

Mime
View raw message