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

 

vdm:savescalarobject

Saves an object to the Sites database as a visitor attribute.

Syntax

Parameters

attribute (required)
Input parameter. Name of the visitor attribute to save the object as.

object (required)
Input parameter. Name of the object to save as the visitor attribute. This object must implement either the standard Java interface, Serializable, or the Sites implementation of the standard Java interface, IStorableObject.

Description

Use this tag to store a shopping cart across sessions.

Example

For example, using the Sites-Engage visitor attribute form, you create a visitor attribute of type binary and name it "storedcart."

You code your application pages to create a cart to be stored when the session ends:

<cart:create name="localcart"/>

Then you use this tag to store that cart object as the visitor attribute named "storedcart":

The next time the visitor arrives at the site, you can use <vdm:loadscalarobject attribute="storedcart"/> to retrieve the stored cart.

   Home > Contents > Index >

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