page = ConfigurationManager.getInstance().getProperty(ConfigurationManager.ERROR_PAGE_PATH);
return page;
}
try {
AbstractDAOFactory daoFactory = Controller.getDAOFactory();
FormDAO formDAO = daoFactory.getFormDAO();
try {
formDAO.create(form);
} catch (IllegalArgumentException ex) {
logger.error(ex, ex);
}
Customer customer = (Customer) request.getSession().getAttribute(AttributesManager.ATTRIBUTE_CUSTOMER);
Order order = new Order();
order.setCustomerId(customer.getId());
order.setFormId(form.getId());
OrderDAO orderDAO = daoFactory.getOrderDAO();
try {
orderDAO.create(order);
} catch (IllegalArgumentException ex) {
logger.error(ex, ex);
}