Home > Contents > Index >  
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

commercecontext:isuserinsegment

Establish whether the current user profile matches specified segment.

Syntax

Parameters

id (required)
Input parameter that specifies the asset ID of the Segment

varname (required)
Name of the output variable to create.

Description

This tag is useful to find whether the current user belongs to a particular segment without invoking the more computationally intensive commercecontext:calculatesegments, which evaluates all segments. The output value is either true or false.

Example

The following checks whether the user belongs to segment whose asset id is 12345:

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.