Not directly a struts question, apart from the fact that I search through the
ServletActionContext to try to find my answer, but what is the most direct route
to get access (statically) to the PageContext?
Thanks
Adam
-
To
Greetings --
I finished the S2 breadcrumb plug-in and you are welcome to it and the
source code at www.strutsschool.com. I plan to cover the plug-in process in
a chapter of the Struts 2 in Action http://www.manning.com/dbrown/ book
which is soon to be released. Until then, a few folks have
I am trying to log the exception that get cought by the struts
exception handler.
So far I have .jsp page that shows the exception:
An Exception Has occured!
br/br/
s:property value=%{exception}/
br/br/
=
s:property value=%{exceptionStack }/
I am going to
I thought I would add this part of the stack trace in case it helps:
SEVERE: Error finishing response
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:689)
In addition to configuring log4j to use a FileAppender to write logs to
a file, here's a very simple way to log exceptions manually from the
exception page:
Within your jsp include the following code:
s:set name=stackTrace value=%{exceptionStack} scope=page/
%
String stackTrace =
Hi Adam,
I have created a ticket in Jira:
https://issues.apache.org/struts/browse/WW-2252
and attached a first version with my changes to the interceptor.
I was thinking of also adding functionality similar to your requirements. I
totally agree that it would be nice if Struts 2 handled the
6 matches
Mail list logo