Re: Forward to exception page instead of result in case of ognl runtime exception ?

2014-06-11 Thread Lukasz Lenart
Define validation for this field, then you will get validation error and Struts will forward to input result 2014-06-12 7:48 GMT+02:00 Mohit Gupta : > I have below action class where customerId is integer. If i pass customerId > as string from UI(I know it should not be allowed but there are > way

Forward to exception page instead of result in case of ognl runtime exception ?

2014-06-11 Thread Mohit Gupta
I have below action class where customerId is integer. If i pass customerId as string from UI(I know it should not be allowed but there are ways user can do it), i get exception ognl.MethodFailedException: . Please find stack trace at last @Results({ @Result(name = "displayCustomer", locatio

Runtime Exception

2010-09-13 Thread stefer16
the application but when I need to run the struts action I get a runtime exception with e.getMessage()=null and on the debugger console I get: Non-existing path "C:\altro_progetto\DVDLibrary\build\ear-module\WEB-INF\classes" provided. Attached JPDA debugger to localhost:tomcat_shared

[s2]Runtime exception in a bean setter

2007-11-22 Thread Vincent Lin
I'm using struts 2.0.9. I have a bean in a action. The setter of the bean will throw a RuntimeException when the value is not a legal value. But when I submitted the form with the illegal value, and the RuntimeException was thrown. Nothing happens to struts 2 container. The exception disappeared an

NOT throwing runtime exception when parameter is not present !!

2005-12-28 Thread Mon Cab
Hello I have one Nested.jsp included in a Frame.jsp. In my nested jsp I have the following: Do something. I have NOT wrapped this in tags and there are no tags in Frame.jsp. When I call the page, without the my_parameter, instead of getting a: javax.servlet.ServletException: Canno