For what its worth I suggested this method because its how I set bean values from select elements
that use the multiple attribute and checboxes.
--- Bob Byron <bbyron@MailAndNews.com> wrote:
> I agree, this will be a great feature, however, if Tomcat does not call the
> setGrade() method when the zero element is null, then I can't use it. Is
> there a work around? This sounds like a bug to me. When can this one be
> fixed?
>
> >===== Original Message From "Bart N. Locanthi" <bart@sabl.com> =====
> >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>
> >>
>
> ------------------------------------------------------------
> Bob Byron
> RAD Systems, Inc.
> (972)516-4256
>
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/
|