I created my interceptor stack in the top-level struts.xml, like this :
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
http://struts.apache.org/dtds/struts-2.3.dtd;
struts
package name=default namespace=/ extends=struts-default
What doesn't work?
Dave
On Aug 27, 2013 7:08 AM, Thomas Lionel SMETS (prof) tsm...@a3-system.eu
wrote:
I created my interceptor stack in the top-level struts.xml, like this :
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
Typically, MdcLoggingUtility does this :
@Override
public String intercept(ActionInvocation invocation) throws
Exception {
/*
* This code puts a unique Id to the Mapped Diagnostic
* context. Since MDC is a static class, we can directly access it
*
Are the actions in the same package?
You need to provide more information; we cannot see your project and
without specifics, we have to guess.
Dave
On Tue, Aug 27, 2013 at 9:30 AM, Thomas Lionel SMETS (prof)
tsm...@a3-system.eu wrote:
Typically, MdcLoggingUtility does this :
To be clear, the term submodule to me indicates some type of
encapsulation... you know that the includes only make one big XML file? If
this is a new project consider the struts2-conventions-plugin, if it is in
use I don't think your configuration should need to grow beyond more than
one xml file.
So, I found a solution to the issue.
Defining the MDC-interceptor is done like this :
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
http://struts.apache.org/dtds/struts-2.3.dtd;
struts
package name=default
Not looking that closely but both your packages extend struts-default if
you want the interceptors/results of package default to be available to
package M1 you should extend default on that package rather than
struts-default...
On Tue, Aug 27, 2013 at 5:04 PM, Thomas Lionel SMETS (prof)
2013/8/28 Ken McWilliams ken.mcwilli...@gmail.com:
Not looking that closely but both your packages extend struts-default if
you want the interceptors/results of package default to be available to
package M1 you should extend default on that package rather than
struts-default...
Exactly! How
8 matches
Mail list logo