View Single Post
  #1 (permalink)  
Old 06-05-2007, 06:26 PM
Jack Jack is offline
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
actionErrors inside of Action
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

Code:
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?
Reply With Quote
Sponsored Links