Home > Contents > Index >
asset:create
Creates an asset object instance.
Syntax
<asset:create name="asset instance name" type="asset type" />Parameters
name (required)
- Name to assign the new asset instance.
type (required)
- Name of the asset type.
Description
Data from the object is written to the database by
asset:save
.Error Numbers
The possible values of
errno
include:
Value Description -10001 The implementing class is invalid. -10002 There is a missing method for the implementing class. -10003 The method could not be invoked successfully. -10004 A required parameter is missing. -10010 Invalid attribute value.Example
The following example creates a new FirstSiteII Content_C asset using asset:create.
<!-- you must be logged in to create an asset --> <usermanager:loginuser username="firstsite" password="firstsite" varname="RESULT" /> <!-- pubid/siteid is required --> <ics:setssvar name="pubid" value="1112198287026" /> <!-- create an empty asset instance of the the specified assettype --> <asset:create name="newasset" type="Content_C" /> <!-- specify attribute values --> <asset:set name="newasset" field="name" value="Test New Asset Name" /> <!-- save the asset --> <asset:save name="newasset" />See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.