Struts Menu
  1. Struts Menu
  2. SM-76

repository in session : last tab selected

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows xp tomcat 5.5

      Description

      I used nicetab with dynamic

      <menu:useMenuDisplayer name="Velocity" config="/templates/nicetabs.html"
      bundle="org.apache.struts.action.MESSAGE" repository="repository" >
      <ul class="menuList">
      <c:forEach var="menu" items="$

      {repository.topMenus}

      ">
      <menu:displayMenu name="$

      {menu.name}

      "/>
      </c:forEach>
      </ul>
      </menu:useMenuDisplayer>

      I put repository in session. When I close session and remove attribute repository if i re-open my app the last tab i click is selected by default.

      How can i do to not select by default the last tab?

      thanks

        Activity

        Hide
        Matt Raible added a comment -

        You could clear the cookie that selects the tab, or modify the JavaScript to ignore it.

        Show
        Matt Raible added a comment - You could clear the cookie that selects the tab, or modify the JavaScript to ignore it.
        Hide
        laurentapo added a comment -

        I prefer to clear the cookie.

        Which parameter in cookie i had to remove?

        Show
        laurentapo added a comment - I prefer to clear the cookie. Which parameter in cookie i had to remove?
        Hide
        Matt Raible added a comment -

        The cookie is called "menuSelected". If you can detect when a user has a new session, you should be able to delete it using JavaScript or on the server-side.

        Show
        Matt Raible added a comment - The cookie is called "menuSelected". If you can detect when a user has a new session, you should be able to delete it using JavaScript or on the server-side.

          People

          • Assignee:
            Matt Raible
            Reporter:
            laurentapo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development