Valentin von Seggern wrote:
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.
I don't know how this is supposed to work either, but if it *is* through
reflection, you need to pick one of those getters and delete the other.
Property getters can't be overloaded like that.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]