Hi Matt,
I still implmented it in StartupListener with the following code.
MenuRepository repository = new MenuRepository();
repository.setServletContext(context);
MenuDisplayerMapping displayerMapping = new MenuDisplayerMapping();
displayerMapping.setName("Velocity");
displayerMapping.setType("net.sf.navigator.displayer.VelocityMenuDisplayer");
repository.addMenuDisplayerMapping(displayerMapping);
Everything works fine so far. Do you have any comments on it?
Regards
Tony Luo
2010/5/4 Matt Raible <[email protected]>:
> You might try doing it in a filter. Either that or specify servlet 2.4 in
> your web.xml and order your listeners.
>
> On Tue, May 4, 2010 at 9:10 AM, Tony Luo <[email protected]> wrote:
>>
>> Hi All,
>>
>> I tried to implement database driven menu in StartupListener.
>> But unfortunately, I can't get defaultMenuDisplayerMapping in
>> StartupListener.updateContext.
>> Is there any advice for this issue? Thanks.
>>
>> Regards
>> Tony Luo
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]