Re: Antwort: Re: problem with multibox
Form: --- public ArrayList getTest() { return mTest; } public void setTest(ArrayList test) { mTest = test; } public Item getItem(int i) { return (Item)mTest.get(i); } private ArrayList mTest; JSP: - - Original Message - From: "Claudia Woestheinrich" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 4:29 PM Subject: Antwort: Re: problem with multibox > > ..Thanks that works. > > Now I have in the JSP-Page checkboxes and textfields. I want to > write > the two values (test,info) in an Map or Array[][]. How must I do > this > in the ActionForm? > > Thanks > Claudia > > My JSP: > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: Re: problem with multibox
..Thanks that works. Now I have in the JSP-Page checkboxes and textfields. I want to write the two values (test,info) in an Map or Array[][]. How must I do this in the ActionForm? Thanks Claudia My JSP: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with multibox
Try, - Original Message - From: "Claudia Woestheinrich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 1:21 PM Subject: problem with multibox > Hi, > > I have a Problem with using multiboxes. I want to generate following > HTML-Code: > > Ronja > Petra > Heini > > But I became: > 2002 Ronja > 2003 Petra > 2004 Heini > > What must I do??? > Thanks > Claudia > > My JSP-Code: > > > > > > > > > > > > > > > And my ActionForm: > > public class MyForm extends ActionForm{ > > /** Creates a new instance of MyForm */ > public MyForm() { > MyBean eins=new MyBean(); > eins.setJahr("2002"); > eins.setName("Ronja"); > > MyBean zwei=new MyBean(); > zwei.setJahr("2003"); > zwei.setName("Petra"); > > MyBean drei=new MyBean(); > drei.setJahr("2004"); > drei.setName("Heini"); > > init=new Object[3]; > init[0]=eins; > init[1]=zwei; > init[2]=drei; > > > } > > private Object[] items, init,sel; > > > public Object[] getItems(){ > return items; > } > > public void setItems(Object[] v){ > items=v; > } > > public Object[] getSel(){ > return sel; > } > > public void setSel(Object[] selected){ > sel=selected; > } > > > > public void reset(ActionMapping mapping,HttpServletRequest req){ > System.out.println("bin in reset"); > > items=new Object[3]; > items=init; > > } > > } > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with multibox
Hi, I have a Problem with using multiboxes. I want to generate following HTML-Code: Ronja Petra Heini But I became: 2002 Ronja 2003 Petra 2004 Heini What must I do??? Thanks Claudia My JSP-Code: And my ActionForm: public class MyForm extends ActionForm{ /** Creates a new instance of MyForm */ public MyForm() { MyBean eins=new MyBean(); eins.setJahr("2002"); eins.setName("Ronja"); MyBean zwei=new MyBean(); zwei.setJahr("2003"); zwei.setName("Petra"); MyBean drei=new MyBean(); drei.setJahr("2004"); drei.setName("Heini"); init=new Object[3]; init[0]=eins; init[1]=zwei; init[2]=drei; } private Object[] items, init,sel; public Object[] getItems(){ return items; } public void setItems(Object[] v){ items=v; } public Object[] getSel(){ return sel; } public void setSel(Object[] selected){ sel=selected; } public void reset(ActionMapping mapping,HttpServletRequest req){ System.out.println("bin in reset"); items=new Object[3]; items=init; } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]