Results 1 to 3 of 3
Thread: actionErrors inside of Action
- 06-05-2007, 05:26 PM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 130
- Rep Power
- 0
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
What is happening?Java 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());
Where is the error?
- 06-06-2007, 02:45 PM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 110
- Rep Power
- 0
try with
return mapping.getInputForward();
then tell me if it worked
- 07-04-2007, 03:31 AM #3
Senior Member
- Join Date
- Jun 2007
- Posts
- 132
- Rep Power
- 0
Similar Threads
-
Launch native app inside a JFrame???
By benedums in forum Advanced JavaReplies: 6Last Post: 02-25-2011, 03:23 PM -
string inside of a xml
By Heather in forum XMLReplies: 2Last Post: 03-28-2008, 05:21 PM -
Class inside an Interface
By $hr!k@nt in forum New To JavaReplies: 1Last Post: 12-21-2007, 10:56 AM -
How to call JSP inside Servlet
By Swamipsn in forum Advanced JavaReplies: 0Last Post: 07-31-2007, 12:50 PM -
To happen of ActionErrors to ActionMessage
By Eric in forum New To JavaReplies: 1Last Post: 07-05-2007, 07:09 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks