users@grizzly.java.net

Re: need ServletAdapter.addFilter with Initparam example

From: Survivant 00 <survivant00_at_gmail.com>
Date: Fri, 6 Feb 2009 13:00:20 -0500

ya ya.. I just did it quickly :)



2009/2/6 Kedar Mhaswade <Kedar.Mhaswade_at_sun.com>

>
>
> Survivant 00 wrote:
>
>> ok, so the map will be
>>
>> Map map = HashMap<String,String>();
>>
>> map.put(initparam,initparamValue);
>>
>
> Map<String, String> map = new HashMap<String, String>();
>
> is better, I guess.
>
>
>> just to be sure.
>>
>>
>> 2009/2/6 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com <mailto:
>> Jeanfrancois.Arcand_at_sun.com>>
>>
>>
>> Salut,
>>
>> switching list.
>>
>>
>> Survivant 00 wrote:
>>
>> I need some help to complete a demo. I saw that we can pass a
>> initParamMap to the addFilter.. but what do I put in the map ?
>>
>> example
>>
>> **<init-param>
>>
>> <param-name>myInitParam</param-name>
>> <param-value>myInitParamValue</param-value>
>> </init-param>
>> **
>>
>>
>> sa.addFilter(filter, filterType.getFilterName().getValue(), map);
>>
>> and how that will be use in the filter ?
>>
>>
>> The Filter will get those value using the FilterConfig element. So
>> what you need to do is to create a Map and store the init-param in
>> it, and pass it.
>>
>> Thanks!
>>
>> -- Jeanfrancois
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> <mailto:users-unsubscribe_at_grizzly.dev.java.net>
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>> <mailto:users-help_at_grizzly.dev.java.net>
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>