Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1647

Provide EL functions for use in jsp pages (instead of ${actpage})

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1 M2
    • 3.1 M1
    • taglibs
    • None

      Since actpage has been deprecated/removed we should start offering a better way to get the current page in jsp page, which doesn't rely on the nave of a variable anymore.

      A good solution for jsp 2.0 containers is to use EL functions. I will add a new cmsfn taglib with the following jsp 2.0 functions:

      ${cmsfn:currentPage()}
      ${cmsfn:mainPage()}
      ${cmsfn:currentParagraph()}

      the new taglib can be declared with:
      <jsp:root ... xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld">

      note that I am not adding this funtions directly to the "cms" tld since this will require updating the tld to jsp 2.0 schema, we will probably it them compatible with jsp 1.2 only containers.

        Acceptance criteria

              fgiust Fabrizio Giustina
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD