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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD