I have a question regarding the use of html:select
in Struts. I have an array list in the session scope named volumediscountArray. Each row of the
array is an "volumediscount" bean object.
VolumeDiscount has volumediscountId as string
My ActionForm is Campaignform
CampignForm has a array of CampaignSlabs
CampaignSlab has id,name,fromdate as Strings.
Now i want the users selection to be set in the CmapignSlabs id .
i tried this but doesn't work ::
<html:select name="campaignSlabBean" property="Id" >
<html
ptions collection="volumediscountArray"
property="volumediscountId"
labelProperty="volumediscountId"/>
</html:select>
The error is:
javax.servlet.ServletException: Cannot find bean under name campaignSlabBean
It works fine if i have to set the displayed attribute directly under CampaignForm but here for deep nesting how to do it?