Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:catalogbatch
Allows
ics:catalogmanagercalls to be used in groups.Syntax
<ics:catalogbatch/>Description
This tag combines commands so that they act as a group. All
catalogmanagertags withincatalogbatchare committed to the database only if all the commands complete successfully. Only the ics:catalogmanager.addrow and ics:catalogmanager.addrowscatalogmanagercommands are supported within theics:catalogbatchtag.Error Numbers
There are no possible
errnofor this tag.Example
In the following example the data is added to the
StoreHourstable and theMyFoodtable only if there are no errors inserting into either table. Any error causes the transaction to rollback.<ics:catalogbatch> <ics:catalogmanager> <ics:argument name="ftcmd" value="addrows"/> <ics:argument name="tablename" value='MyFood'/> <ics:argument name="id0" value="0"/> <ics:argument name="fruit0" value="kiwi"/> <ics:argument name="vegetable0" value="asparagus"/> <ics:argument name="bread0" value="rye"/> <ics:argument name="meat0" value="chicken breast"/> <ics:argument name="id1" value="1"/> <ics:argument name="fruit1" value="banana"/> <ics:argument name="vegetable1" value="peas"/> <ics:argument name="bread1" value="sourdough"/> <ics:argument name="meat1" value="filet mignon"/> </ics:catalogmanager> <ics:catalogmanager> <ics:argument name="ftcmd" value="addrow"/> <ics:argument name="tablename" value="StoreHours"/> <ics:argument name="id" value="332"/> <ics:argument name="description" value="Open 24 hours"/> </ics:catalogmanager> </ics:catalogbatch>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.