I have this problem(I'm using struts)
When I want to show an error that returns from hibernate, it starts to complicate
I access to hibernate through facade -> Service -> Dao -> Hibernate
When I send the exception of ViolationConstraint, it arrives to the action but when I want to returns to the original page, it returns me a blank page.
In the catch block I have this
ActionErrors errors =new ActionErrors();
errors.add("everybody", new ActionError("errors.duplicate"));
saveErrors(request,errors);
System.out.println("here is the Constraint Exception!!!!!!!!!!!!!!!!!!!!");
return mapping.findForward(mapping.getInput());
What is happening?
Where is the error?