Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Indexed Action Form doubt

 
Rashid Darvesh
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rashid Darvesh
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help on this
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only help I know to give is http://faq.javaranch.com/view?HowToAskQuestionsTheSmartWay - sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic