M
milkyway
Hello out there again,
Thought I would add a few more details to the problem
I am using the indexed property approcach from sun: at
http://struts.apache.org/faqs/indexedprops.html
I have gotten the sample for the "Nested Properties" example to work.
This basically uses the following in the .jsp file:
<bean:write name="bean" property="labelValue[1].label" />
But for me, I need a list of labels. This list varies dynamically
(retrieved from a database). The problem is how to pass a parameter in
so that I can vary the list. The example uses an ActionForm to get the
data and mine has worked fine whenever I can initialize the contents of
a bean from the constructor of an ActionForm.
Is it possible to pass a parameter to the constructor of an action
form? Is it possible to access the request class from the constructor
of an action form?
IF so, how can this be done?
TIA
Thought I would add a few more details to the problem
I am using the indexed property approcach from sun: at
http://struts.apache.org/faqs/indexedprops.html
I have gotten the sample for the "Nested Properties" example to work.
This basically uses the following in the .jsp file:
<bean:write name="bean" property="labelValue[1].label" />
But for me, I need a list of labels. This list varies dynamically
(retrieved from a database). The problem is how to pass a parameter in
so that I can vary the list. The example uses an ActionForm to get the
data and mine has worked fine whenever I can initialize the contents of
a bean from the constructor of an ActionForm.
Is it possible to pass a parameter to the constructor of an action
form? Is it possible to access the request class from the constructor
of an action form?
IF so, how can this be done?
TIA