Getting NULL in String[] menus = request.getParameterValues("menus");

View: New views
1 Messages — Rating Filter:   Alert me  

Getting NULL in String[] menus = request.getParameterValues("menus");

by Akil Ali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
    I am new to this menu creation. I am gone through several document. My problem is i have seen String[] menus = request.getParameterValues("menus"); but where the menus are set into the request scope. or my assumption it gets this from menu-config.xml file. that we have added into the struts-config.xml as a plugin.

But i am getting a NULL values. My mapping in menu-config.xml file looks like

 <Menus>
     <Menu name="Home"  title="Home" action="/postLoginAction" roles="cabotsearch_user,odssearch_user,admin_user,readonly_user" width="42" />
     <Menu name="Logout" title="Logout" action="/logoutAction" roles="cabotsearch_user,odssearch_user,admin_user,readonly_user" width="52" />
</Menus>

Please tell me where i am getting wrong? Which mapping is missing.

Thanks in advance.

Akil