Fair enough.  Here's how I'm doing it now.  Definitely interested in any
thoughts for cleaning up this mess, optimizing and using Struts 1 to the
fullest.  The variable "allowedTasks" is a Vector of Strings representing
what the user can do within the app.


<div width="100%" align="left" class="menuBar">
          -1 ? "menuLinkSelected" : "menuLink" %>"
href="<%=request.getContextPath()%>/jsp/main.jsp"/><bean:message
key="optionsForm.page.link.home"/> 
        <%
                if(allowedTasks!=null &&
allowedTasks.contains(IMConstants.taskAdmin) ||
                               
allowedTasks.contains(IMConstants.taskManageApps)) {
        %>
          -1 ? "menuLinkSelected" : "menuLink" %>"
href="<%=request.getContextPath()%>/applicationsAdmin.do"/><bean:message
key="optionsForm.page.link.applications"/> 
        <%
                }

                if(allowedTasks!=null &&
allowedTasks.contains(IMConstants.taskAdmin) ||
                               
allowedTasks.contains(IMConstants.taskManageRoles)) {
        %>
          -1 ? "menuLinkSelected" : "menuLink" %>"
href="<%=request.getContextPath()%>/rolesAdmin.do"/><bean:message
key="optionsForm.page.link.roles"/> 
        <%
                }

                if(allowedTasks!=null &&
allowedTasks.contains(IMConstants.taskAdmin) ||
                               
allowedTasks.contains(IMConstants.taskManageGroups)) {
        %>
          -1 ? "menuLinkSelected" : "menuLink" %>"
href="<%=request.getContextPath()%>/appGroupsAdmin.do"/><bean:message
key="optionsForm.page.link.groups"/> 
        <%
                }
        %>
</div>


 - Dave



laredotornado wrote:
> 
> Hi,
> 
> Using pre-Struts 2, what is the preferred method of creating a navigation
> menu?  I have something that looks like this --
> http://screencast.com/t/xmVBY9Te and the desire is that as I click on each
> nav item it takes me to my page of choice while styling the current menu
> selection differently.
> 
> Thanks, - Dave
> 

-- 
View this message in context: 
http://www.nabble.com/What-is-the-struts-way-to-create-a-navigation-menu--tp19188594p19190159.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to