Home > Contents > Index > 
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index 
dir:create
Creates new objects.
Syntax
<dir:create [name="ENTRY_name"]> [default="default property"] <[dir:argument name="ARG_name]" [value="ARG_value"]/> </dir:create>Parameters
name (optional)- Unique identifier for the name of the entry to create. The value is relative to the
baseDNproperty.
default (optional)- Set of attribute name/value pairs to be set on the entry. The prefered method is to specify the
defaultPeopleAttrs.iniproperty, see the example for details.
dir:argument name (optional)- Name of the attribute to create for this entry.
dir:argument value (required)- Value of the named attribute.
Description
This tag creates a new object.The name of the object is implied from its attributes, specified as arguments.
Error Numbers
The possible values of
errnoinclude:
Example
This example contains the following custom
.iniproperties not found on your system:
th.AttributeFirstName
th.AttributeSN
th.AttributeManager
th.AttributeTitle
th.AttributePhone<dir:create name='<%= ics.GetVar("name") %>' defaults='<%=ics.GetProperty("defaultPeopleAttrs", "dir.ini", true)%>'> <dir:argument name='<%=ics.GetProperty("username", "dir.ini", true)%>' value='<%=ics.GetVar("User1ID")%>'/> <dir:argument name='<%=ics.GetProperty("password", "dir.ini", true)%>' value='<%=ics.GetVar("User1PW")%>'/> <dir:argument name='<%=ics.GetProperty("th.AttributeFirstName",
"dir.ini", true)%>' value='<%=ics.GetVar("User1FirstName")%>'/> <dir:argument name='<%=ics.GetProperty("cn", "dir.ini", true)%>' value='<%=ics.GetVar("User1FirstName")+" "+ics.GetVar("User1LastName")%>'/> <dir:argument name='<%=ics.GetProperty("th.AttributeSN", "dir.ini", true)%>' value='<%=ics.GetVar("User1LastName")%>'/> <dir:argument name='<%=ics.GetProperty("th.AttributeManager", "dir.ini", true)%>' value='<%=ics.GetVar("Manager1")%>'/> <dir:argument name='<%=ics.GetProperty("th.AttributeTitle", "dir.ini", true)%>'?value='<%=ics.GetVar("Title1")%>'/> <dir:argument name='<%=ics.GetProperty("th.AttributePhone", "dir.ini", true)%>' value='<%=ics.GetVar("User1phone")%>'/> </dir:create> <ics:if condition='<%=ics.GetErrno()==0%>'> <ics:then> <p><b> Successful Creating User=<ics:getvar name='name'/> </b></p> </ics:then> <ics:else> <p><b>Could not create user, <ics:getvar name='name'/>, error=i<ics:geterrno/></p></b> </ics:else> </ics:if>
Home > Contents > Index > 
Oracle JSP Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.