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]

Reply via email to