Originally posted by Naveen R R: [B]Hi, Could anyone help me with this? It is giving an error:- Type mismatch: cannot convert from java.lang.Class to navigation.WorkerBeanImpl public String processRequestwbImpl = Class.forName(navRow.getWorkerBean()); //ERROR ------- Class.forName takes a fully qualified paackage name as a String for an argument and returns the Class Object representing that name. If getWorkerBean is not doing this then you will get an error Trevor

Naveen R R

Greenhorn

Posts: 20

posted 16 years ago

Thank you very much. This works fine: wbImpl = (WorkerBeanImpl)Class.forName(navRow.getWorkerBean()).newInstance(); Naveen