Istvan Boscha - 2004-04-27

Hi!

I have:

public class DepartmentForm extends BaseActionForm implements java.io.Serializable
{
    protected String departmentid;
    protected String name;
    protected String deptkeyname;
             //parent department
    protected DepartmentForm department;
            //address
    protected AddressForm address;
...
}

In this case if i want to set in the jsp the departmentForm.department.departmentid i have to
instancianate in the getDepartment() method my department member variable in the DepartmentForm.

But than when i want to convert the DepartmentForm to a value object - say Department - i will end up in an endless loop.....

Any solution to this problem?

Thank you.

Why is not instancianating struts a nested bean when in the jsp is a value assigned to one of it's member variables? PropertyUtils simple gives back the getter method value, thats why i have to instancianate my member in the getter method....