[jboss-user] [EJB 3.0] - Re: Help on java.lang.ClassCastException: java.lang.String
jaikiran
do-not-reply at jboss.com
Thu Oct 19 06:57:04 EDT 2006
Are you sure you changed the code at the right place. Your first post had the following code, which i asked you to change:
TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade();
| List myList = myCountryBean.findAll();
| int length = myList.size();
|
| for (int i = 0; i < length; i++) {
| TblCSCSubCategory region = (TblCSCSubCategory) myList.get(i) ;
| System.out.println((i + 1)+". "+region.getStrName().toString());
| }
The code that you changed has something different:
| TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade();
| List myList = myCountryBean.findAllCat();
| int length = myList.size();
|
| for (int i = 0; i < length; i++) {
| //TblCountry region = (TblCountry) myList.get(i) ;
| String country = (String) myList.get(i);
| System.out.println(country);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979328#3979328
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979328
More information about the jboss-user
mailing list