struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bar³omiej Paw³owski <bpawlow...@supermedia.pl>
Subject Problem with html:select multiple=true and enctype=multipart/from-data
Date Wed, 22 Aug 2001 12:07:02 GMT
Hi everyone
I have the following in a form in a jsp:
  <html:form action="/searchDocument.do" >
      <html:select property="keys" style="width: 200px;" multiple="true"
size="5">
       <html:options collection="keysWord" property="id"
labelProperty="val"/>
     </html:select>
  </html:form>

 In ActionFrom I have following methods:
    public void setKeys(Object[] keys) {
        this.keys = keys;
    }
    public Object[] getKeys() {
        return this.keys;
    }

and when I hit submit everything is OK.
i.e. keys.length = 0,1,2,3,4,5,6,............

but when I add
method="post" enctype="multipart/form-data"
keys.length always equals 0 or 1
why?????

could someone point me to the solution, please ?

Thanx
Bartek
Poland


Mime
View raw message