Hi List,
I need my own interceptor to be able to access parameters. In my
struts.xml I have something like:
....
<interceptor name="myInter" class="MyInterceptor">
<param name="cid">1234</param>
</interceptor>
....
My Interceptor Stack contains:
....
<interceptor-ref name="myInter"><param
name="cid">987</param></interceptor-ref>
....
Looking through the source code of Interceptors that have parameters
like this, I figure that reflection is supposed to happen.
In MyInterceptor.java implementation I hence have this:
....
public void setCid(String cid){
LOG.debug("setCid(String) was called");
}
public void setCid(Object cid){
LOG.debug("setCid(Object) was called.);
}
....
I expect either of this methodes to be invoked. But this does not happen.
I guess I am missing something quite obvious but extensive documentation
browsing didn't enlighten me. If you can please do - Your help is
appreciated.
Thank you,
Valentin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]