I've done a search of the archives, but can't find any two answers that are the 
same on this one!

I'm creating a wizard interface, and a couple of the pages hold an array of 
values, that are viewed using <html:multibox>'s within an <html:iterate>.

When they aren't visible, those values that have been selected need to be 
stored in hidden fields on the form.

My jsp reads as:

.
.
<logic:notEqual name="pageNo" value="1">
    <logic:iterate id="service" name="editDatabaseForm" property="service">
        <html:hidden property="services" indexed="true"/>
    </logic:iterate>
</logic:notEqual>
.
.

My question is what do I use for the gets and sets in the form bean?  At the 
moment I have (from one of the suggestions I found in the archive):

    private Vector services = new Vector();

    public Vector getServices()
        { return services; }
    public Select getServices( int i )
        { return (Select) services.get( i ); }
    
    public void setServices( Vector services )
        { this.services = services; }
    public void setServices( int i, Select service )
        { services.set( i, service ); }

Each service is stored within a "Select" class (simply stores a value and a 
label).

What am I doing wrong? - no matter what combination I try the jsp page won't 
run!

Thanks

Ian



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to