Hi All,
I am getting this Eroor
Cannot cast from ActionForm to StudentForm
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
StudentService service = new StudentService();
StudentForm studentForm = (StudentForm) form; //Error is shown here...
StudentDTO studentDTO = new StudentDTO();
BeanUtils.copyProperties( studentDTO, studentForm );
service.insertStudent( studentDTO );
request.setAttribute("employee",studentDTO);
return (mapping.findForward("success"));
}
Any help would be greatly appreciated.
Thanks
AS