[MAGNOLIA-2786] CLONE -Provide EL functions for use in jsp pages (instead of ${actpage}) Created: 13/Jun/09  Updated: 18/Jun/09  Resolved: 18/Jun/09

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 3.1 M1
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: prakash chinnakannan Assignee: Magnolia International
Resolution: Duplicate Votes: 0
Labels: Hello
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MAGNOLIA-1647 Provide EL functions for use in jsp p... Closed
dependency
is depended upon by MAGNOLIA-1647 Provide EL functions for use in jsp p... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 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.



 Comments   
Comment by Magnolia International [ 15/Jun/09 ]

Hi,

Is there something we could do for you, or did you just copy this issue by accident ?

Cheers,
-g

Generated at Mon Feb 12 03:40:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.