Again 
      <html:multibox property="stringMultibox">
        String 0
      </html:multibox>

This code is generating  <input type="checkbox" name="stringMultibox"
value="String 0">

I did not understand where is ** value="String 0" ** is coming from ??
The code in the Multibox.java looks something like this 
        results.append(" value=\"");
        results.append(this.value);

Let me know the reason

Suhas
 

-----Original Message-----
From: SUHAS G. KULKARNI [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 7:51 PM
To: [EMAIL PROTECTED]
Subject: Multibox Question


The below  code works - 
      <html:multibox property="stringMultibox">
        String 0
      </html:multibox>

But if  I write      <html:multibox property="stringMultibox" /> does not
work 
I get javax.servlet.ServletException: You must specify the value attribute
or nested tag content

I checked the struts-html.tld file for the syntax which shows "property" is
the only required attribute  . Then why is it asked for another attribute
called "value "

Let me know where I'm doing mistake ?

Thanks
Suhas


Reply via email to