hi,
i am trying to put some integer vales from the instance of a class to a List by
List sexList=new ArrayList();
sexList.add(Integer(PersonBean.getSex())); in a jsp page. but when i run the page i get an
error
Icompatible type for method. Can't convert double to java.lang.Object.
EndPensionList.add(BVGInsuredBean.getOldAgePension());
how can i avoid this error.
the getsex() method returns an integer.
thanx
Rabix
i am trying to put some integer vales from the instance of a class to a List by
List sexList=new ArrayList();
sexList.add(Integer(PersonBean.getSex())); in a jsp page. but when i run the page i get an
error
Icompatible type for method. Can't convert double to java.lang.Object.
EndPensionList.add(BVGInsuredBean.getOldAgePension());
how can i avoid this error.
the getsex() method returns an integer.
thanx
Rabix