3334353637383940
try { id = new Long(value); } catch (NumberFormatException ex) { throw new ConverterException("Incorrect id for Event[" + value +"]"); } EventController ctrl = new EventController(); return ctrl.read(id); }
140141142143144145146147148
protected SessionBean1 getSessionBean1() { return (SessionBean1)getBean("SessionBean1"); } public String buttonValidate_action() { new EventController().update( getSessionBean1().getEvent()); return "success"; }