Hi, I don't really understand what you want to do : Can you describe a little bit more what the resulting page should look like, and what is the expected behavior when you select an option ? Also, is there a set of select for each adress, or one for all adresses ...
Cedric iT meDic wrote: > Hi Cedric, > > I am using your editaddress.jsp component(TILES) to create instances of > addresses. > I am tyring to create a Single Select box and populate that with instances > of the component. > Eg using this tag <html:select property="singleSelect"> for address > components: > mailing address > billing address > etc. > > Under the select box i would like to have three options, Edit, delete and > add. > My concepts are as follows: > For the edit i think i can map the edit action to openup editaddress.jsp > and set the value to what was selected in the form. > > Eg. <comp:put name:"compname" value="<getvaluefromform>" /> > <comp:put name:"address" value="<%=invoiceForm.getvaluefromform>" /> > something like the above. > > For the delete and add parts i am completely baffled. > > Basically i am trying to devise a page which will allow users to edit add > remove components in a single select box, eg if i wanted to add my mother's > address components, i would be able to do so from the web page. > > I would appreciate any help! Thank you! > > >From: Don Saxton <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: Struts Users Mailing List <[EMAIL PROTECTED]> > >Subject: Re: issue > >Date: Tue, 30 Oct 2001 10:11:41 -0800 > > > >Iterate is not the way to go on Options. Here are two examples > > > >where value (ids) and labels are separate Lists: > > <html:select name="ActorForm" property="permissionID" > > > <html:options name="ActorForm" property="permissionKit.ids" > > labelName="ActorForm" labelProperty="permissionKit.labels"/> > > </html:select> > > > >where each item of a List has an value and label: > > <bean:define id="AQs" name="QuestionForm" > >property="questionKit.collection"/> > > <html:select name="QuestionForm" property="altQuestion"> > > <html:options collection="AQs" property="id" > > labelProperty="label" /> > > </html:select></td> > > > >----- Original Message ----- > >From: "Mahesh Agarwal" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Tuesday, October 30, 2001 5:17 AM > >Subject: issue > > > > > > > hi all > > > > > > Inside the value of the option tag I want to dynamically get the value > >of > > > the bean element. If embed the same bean tag inside the value then it > > > says "Attribute has no value". The following is the code. > > > <html:select property="selected" size="10" multiple="true"> > > > <logic:iterate id="element" name="supplierList" scope="request"> > > > <html:option value=""> <bean:write name="element" > > > property="supplierUser.company.name"/> </html:option> > > > </logic:iterate> > > > </html:select> > > > > > > the alternative i used is > > > > > > <html:select property="selected" size="10" multiple="true"> > > > <logic:iterate id="element" name="supplierList" scope="request"> > > > <html:option value="<bean:write name="element" > > > property="supplierUser.company.name"/> "> <bean:write name="element" > > > property="supplierUser.company.name"/> </html:option> > > > </logic:iterate> > > > </html:select> > > > > > > but its giving error > > > > > > can i help me out > > > > > > thanks in lot in advance > > > > > > mahesh > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > > > > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>