Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Fetching values from request attributes


Level 5


I am trying to set some value in request scope and fetch the same in HTL, it is not working, Not sure if this is doable in HTL without using Use API or backend changes.


<%@include file="/libs/foundation/global.jsp" %>
boolean isActive = false;
<c:set var="productStatus" value="<%=isActive%>" scope="request" />

<div data-sly-include="/apps/wknd/components/page/common/product.jsp" data-sly-unwrap></div>

<div>productStatus Flag - ${request.getAttribute("productStatus").toString}</div>



1 Reply


Level 10

Yes you will have to write some backend code for getting request attributes. I would recommend that you write a generic backend class which can be used for fetching any request attribute. You can refer to following example -