[MAGNOLIA-1964] Use forward() in JspTemplateRenderer so that templates can do redirects, and to avoid incompatibility with 3.0 templates Created: 17/Dec/07  Updated: 23/Jan/13  Resolved: 17/Dec/07

Status: Closed
Project: Magnolia
Component/s: core, templating
Affects Version/s: 3.5 RC3
Fix Version/s: 3.5

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MAGNOLIA-1938 Redirect doesn't work properly in mai... Closed
supersession
supersedes MAGNOLIA-1776 Changing template renderers in order ... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

JSP templates need to be able to do redirects or set cookies. By using RequestDispatcher.include() as we've done until 3.5RC3, this is not allowed.



 Comments   
Comment by Magnolia International [ 17/Dec/07 ]

Solved by Philipp for MAGNOLIA-1938:

  • change the TemplateRenderer to use a forward instead of include
  • add support for a special request attribute which is used for bypasses (this attribute is then set by the TemplateRenderer)
  • add a main bypass which does bypass the complete filter if the attribute is set
Generated at Mon Feb 12 03:32:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.