Hi all,
I'm new of this newsgroup and I tried to find about the subject, but I don't
succeed :( ...

however... I have a bean that extends ActionForm with also this R/W property

  private String[] esami;
  public String getEsami(int index) {
    return esami[index];
  }
  public void setEsami(int index, String value) {
    esami[index] = value;
  }

In the JSP I have in session *another* object called "esami" that contains a
list of checkboxes:

  <c:set var="count" value="0" scope="page"/>
  <c:forEach items="${applicationScope.esami}" var="e">
    <input type="checkbox" class="campo" 
           name="esami[<c:out value="${count}"/>]" 
           value="<c:out value="${e.COD_RISULT}"/>"
           id="<c:out value="${e.COD_RISULT}"/>"/>
    <c:set var="count" value="${count+1}"/>
  </c:forEach>

this code whant to replicate the <html:checkbox/> tag, with the indexed property.
I whanna do this thing because the value of the <html:checkbox> could not insert
a runtime value on it (e.COD_RISULT).

In this way the code does not run and raise a BeanUtils.populate exception.
I think I wrong the way, But I don't know what can do...

I hope I'll not create a flame,

best reguards,

--
Davide Gurgone




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to