   | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | |  | Adding an element with unbounded maxOcc | Adding an element with unbounded maxOcc 2003-12-21 - By Moipone Mocoancoeng
Back How do I create an element that has an unbounded maximum occurences. for examples I've created an element that I need to set text to an object that can be 1 0r more.When I do element.addContent only the first object is added to the one element and other object aren't added. Element element= new Element("ActivitySummary"); for (int j = 0; j <act.length; j++){ Element element1= new Element("ActivityType").setText(act[j]); element.addContent(element1); } Please Advise on how best can I resolve this problem. Best Regards
-- ---- ---- ---- ---- ---- ----- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing <LABEL id=HbSession SessionId="3904262742"></LABEL> <DIV>How do I create an element that has an unbounded maximum occurences.< /DIV> <DIV>for examples I've created an element that I need to set text to an object that can be 1 0r more.When I do element.addContent only the first object is added to the one element and other object aren't added.</DIV> <DIV> </DIV> <DIV> Element element= new Element( "ActivitySummary");<BR> for (int j = 0; j <act .length; j++){<BR> Element element1= new Element("ActivityType").setText(act[j]);<BR> element.addContent(element1);<BR> }</DIV> <DIV>Please Advise on how best can I resolve this problem.</DIV> <DIV>Best Regards</DIV> <DIV> </DIV><p><hr SIZE=1> Do you Yahoo!?<br> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=21260/*http://photos .yahoo.com">New Yahoo! Photos - easier uploading and sharing</a>
Earn $52 per hosting referral at Lunarpages.
|
|
 |