I've spent the last couple of hours trying to debug a page with mapped
properties.

I found a section of the faq about it:
http://struts.apache.org/faqs/indexedprops.html

It says:
"The signature of the "get" and "set" methods for a mapped property are
different from the same methods for an indexed property. In particular,
instead of an "int" for the index, there is a "String" for the key." and the
example shows these methods...

But this doesnt work!!!!!!!!

To read the field, it requires a get method like:
    public Map getDate() {
        return dateMap;
    }

For it to write the fields it needs a set method like:
    public void setDate(Map date) {
        this.dateMap=date;
    }

Now the odd thing is that it never calls the set method (fair enough or it
would overwrite the whole map every time), however it wont work unless it
exists!

It would be nice if someone could correct the faq :)

Daniel.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to