Harper,
For display the details over a Iterator is not my problem.
It works fine for me
The problem with assigning values to the same List
U explained something like this
<s:iterator value="irs">
<s:property value="a"/>
<s:property value="b"/>
</s:iterator>
here irs in the sense it is a list in my action class which give a ir
object
if I want to reassign some other value to the same "ir" object how to do
that
Got my problem
regards
Vamsi
----- Original Message -----
From: "Laurie Harper" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Sunday, August 19, 2007 4:23 AM
Subject: Re: Autowiring multiple Items of same object
I'm not sure I understand the problem, but here are some comments that
might help to clarify:
Vamsi wrote:
Hi all,
I will explain my problem scenario.
I have a objects
<s:iterator values="advisors">
<s:checkbox name="irs.a"/>
<s:checkbox name="irs.b"/> </s:iterator>
You're instructing the s:iterator tag to iterate over a collection names
'advisors'. Do you have a getAdvisors() method accessible through the
value stack? What does it return?
For each element in the collection named 'advisors', you are then
attempting to reference properties named 'irs.a' and 'irs.b'. So,
translating (approximately) into Java, the above markup is roughly
equivalent to:
for (SomeType item : getAdvisors()) {
out.writeln(item.getIrs().getA());
out.writeln(item.getIrs().getB());
}
in My action class there is I am declaring like this
List<IR> irs;
This doesn't match up with your markup. Perhaps what you intended to do
was something more like
<s:iterator value="irs">
<s:property value="a"/>
<s:property value="b"/>
</s:iterator>
Can anybody provide solutions for this one or references
http://struts.apache.org/2.0.9/docs/iterator.html
http://struts.apache.org/2.0.9/docs/property.html
http://struts.apache.org/2.0.9/docs/tag-syntax.html
If that doesn't clarify things, try re-posting with a more complete
description of the code and markup you're using.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]