struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danish ansari <mohddanish27...@gmail.com>
Subject Re: Map param in <param> tag
Date Mon, 20 Feb 2012 13:32:10 GMT
hey buddy,,
i have just subscribed to the mailing list.
can you tell me how can i ask question as you have asked.
thank you

On Fri, Feb 17, 2012 at 8:14 AM, Joson Mandaro <joson.prog@gmail.com> wrote:

> Hi all,
> I've written a new Interceptor. It requires a Map parameter named "parser".
> private Map<String, String> parser;
> // Getter and Setter
> public void setParser(Map<String, String> parser) ...
>
> How to parse a Map parameter to it?
> Here is what I tried:
> <interceptor-ref name="myInterceptorStack">
>    <param name="myInterceptor.parser[2]">ABC</param>
>    <param name="myInterceptor.parser[8]">EDF</param>
> </interceptor>
>
> But then "this.parser" was null in intercept().
>
> Thanks in advanced.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message