struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Map param in <param> tag
Date Mon, 20 Feb 2012 17:30:32 GMT
By sending an email to the list, as you just did.

(pardon brevity and typos, on cell)
On Feb 20, 2012 8:32 AM, "danish ansari" <mohddanish27744@gmail.com> wrote:

> 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