mikeh96 wrote:
>
> I am unable to trap an exception and it's being pushed up until it becomes
> a 500 Servlet Exception.
> Hello,
> Thanks in advanced.!
> Do anyone help me,how can i get exception message,StackTrace into my
> user defined class ?
> My is looks like this:-
>
>
the previous posting seems to not like the \
You are right... I am just trying to catch those rare events.
Now here's something crazy: (and I have checked, and double checked,
restarted server, etc).
BUT if I add a to my action, the exception mapping WORKS. If I
take it away, the exce
I have no ideas about that one :)
mikeh96 wrote:
You are right... I am just trying to catch those rare events.
Now here's something crazy: (and I have checked, and double checked,
restarted server, etc).
BUT if I add a to my action, the exception mapping WORKS. If I take it
away, the excepti
You are right... I am just trying to catch those rare events.
Now here's something crazy: (and I have checked, and double checked,
restarted server, etc).
BUT if I add a to my action, the exception mapping WORKS. If I take it
away, the exception is not caught.
bar
You are right... I am just trying to catch those rare events.
Now here's something crazy: (and I have checked, and double checked,
restarted server, etc).
BUT if I add a to my action, the exception mapping WORKS. If I take it
away, the exception is
not caught.
bar
Yes, that's definitely a valid approach.
I guess the question I have is "how are you using the feature?" It
looks like you are simply providing a pass-through to view a velocity
template that is the same as the action name. Are you expecting the
user to make a request to a template that will
Thanks for the clarification. Is the solution of extending VelocityResult
and configuring it with a
template name to return (e.g. 404.vm) if the requested template throws the
ResourceNotFoundException
a viable one ? Or is there a way to handle this more elegantly ?
thanks again for your time
The result is executed after the interceptors and after the action has
executed. Look at the invoke() method on the DefaultActionInvocation
class. Therefore, because your exception is in rendering the result,
the exception is not managed by the interceptor. If you threw the same
exception fr
thanks for looking. I pasted the full stack trace below. I am not using
any home grown action code (yet). This is coming from the
DefaultActionSupport during the rendering stage.
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
Do I need to subcl
Is the exception occurring during the call to execute() (or equivalent)
business logic method? This is where the exception handler interceptor
is applied. It seems like the exception you are receiving is from a
rendering phase outside the execution of the actions logic.
/Ian
mikeh96 wrote:
Thanks for taking the time.. unfortunately, the exceptions are still
percolating up.
Do you have it working?
Brian Trzupek wrote:
>
> I am not 100% sure on this, but I think you need to have
> struts.devMode = false in struts.properties.
>
> Give that a whirl.
>
> Brian-
>
> On Sep 30,
I am not 100% sure on this, but I think you need to have
struts.devMode = false in struts.properties.
Give that a whirl.
Brian-
On Sep 30, 2007, at 9:43 PM, mikeh96 wrote:
I am unable to trap an exception and it's being pushed up until it
becomes a
500 Servlet Exception.
Basically, I w
12 matches
Mail list logo