This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I came across this very good article on using the iNdexed action form but i need to find out how to initialize the array at runtime, i just pasted the link tothat article http://www.developer.com/java/web/article.php/2233591 This is waht i am doing i have a java bean with three properties partNumber,Qty and price. in the struts config.xml i have defined an action form whichis an array of this bean withe size hardcoded as 4 <form-bean name="purchaseOrderBeanForm" type="org.apache.struts.action.DynaActionForm"> <form-property name="lines" type="com.explore.POLine" size="4" /> </form-bean> This are my mapping <action path="/generateBeanPOForm" forward="/purchaseOrderBean.jsp" name="purchaseOrderBeanForm" scope="request"/> <action path="/generateBeanPO" type="com.explore.GenerateBeanPO" name="purchaseOrderBeanForm" scope="request" input="/purchaseOrderBean.jsp"> <forward name="success" path="/purchaseOrderBean.jsp" redirect="false"/> </action> What i really wanted to know was how can i initialize the bean array at runtime. I hope i am clear with my question. You can refer the tutorial if my question is a bit vague. Any help
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus