struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joson Mandaro <>
Subject Map param in <param> tag
Date Fri, 17 Feb 2012 02:44:54 GMT
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>

But then "this.parser" was null in intercept().

Thanks in advanced.

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