int templateId = Integer.parseInt(request.getParameter("templateId"));
// Get the detail from the EJB world ...
PrintTemplateVO templateVO = null;
Collection templateCategories = null;
try {
PrintTemplate remoteEJB = (PrintTemplate)CVUtility.setupEJB("Printtemplate", "com.centraview.printtemplate.PrintTemplateHome", dataSource);
templateVO = remoteEJB.getPrintTemplate(templateId);
templateCategories = remoteEJB.getCategories();
} catch (Exception e) {
throw new ServletException(e);
}
// ... and populate the DynaActionForm
DynaActionForm templateForm = (DynaActionForm)form;