struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart" <lukasz.len...@googlemail.com>
Subject Re: Having problem with Struts CRUD
Date Fri, 05 Dec 2008 11:41:46 GMT
2008/12/5 Vinoth.t <ece.vino@gmail.com>:
> private String city;
>
>        public Employee(Integer employeeId, String firstName, String lastName,
>                        Integer age, Department department, String city) {
>                this.employeeId = employeeId;
>                this.firstName = firstName;
>                this.lastName = lastName;
>                this.age = age;
>                this.department = department;
>                this.city = city;
>        }

Add default constructor, Struts 2 don't know how to create object's
without default contsrutor. After it will be able to create the
object, it will inject all fields from to matching fields within that
object.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message