Hi,
i am a new to scriptella. i am using janino driver to perform some
computations in java. i have an outer ldap query and need to
manipulate the result set (for each row) and insert the modified
result set date into another ldap.
still, after changing the varaible with set, the get() and the ?uid
still referring the same old value ?
please help me if i am doing something wrong.
Ex: code
---------------
<query connection-id="ldap1" >
Select uid from ou=People,o=
sct.com,o=cp WHERE objectClass
= 'inetOrgPerson'
<query connection-id="janino">
if(get("uid").equals("")){
set("uid","undefined");
System.out.println(" UID modified"); // this statement
is executing
}
System.out.println("UID: "+ get("uid")); // still
printing the old value - that is empty string
next();
<script connection-id="ldap2">
INSERT INTO uid,ou=People,o=cp (uid)
VALUES (?uid);
</script>
</query>