allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.general.requiredField", "Custom View ID"));
return(mapping.findForward(forward));
}
// get data from database
ViewHome viewHome = (ViewHome)CVUtility.getHomeObject("com.centraview.view.ViewHome","View");
View remote = null;
try {
remote = (View)viewHome.create();
} catch (CreateException e) {
System.out.println("[execute] Exception thrown: " + e);
throw new ServletException(e);
}
remote.setDataSource(dataSource);