Thank you everybody! Special thanks to Norm!
Type: Posts; User: apocalipsis1982
Thank you everybody! Special thanks to Norm!
while (it.hasNext()) {
strguid = (String) it.next();
out.println(attrName + "=" + strguid + "");
You were right. That fixed the problem man!
I will try that :-) And will report back after lunch.
Thanks.
Hmm, actually the code is not mine. This is a block of code from Oracle OpenSSO Fedlet --which I installed on one of my servers for an integration with PeopleSoft. Shouldn't there be a way...
Oh boy. Yeah I know what you mean. I got all that text which is not what I want to see.
In my particular case, the println(it.next());
returns a user name: usernamewxyz
I want to store that...
So...Is it possible to do a it.ToString(); instead of doing a next() on the object?
if ((attrVals != null) && !attrVals.isEmpty()) {
Iterator it = attrVals.iterator();
while (it.hasNext()) {
out.println(attrName + "=" +...
I "simply" need to store the value of it.next() into a variable so I can manipulate it. Like adding it to a URL value and passing it to another page.
out.println(attrName + "=" + it.next() +...
Thank you guys. Well when I try to do this: strguid = (Object) it.next().toString(); or this strguid = (String) it.next(); the code breaks and I get an exception:
Stacktrace:...
Well my problem is that I trying to store the value of it.next in a variable and I have not been successful yet. When I try this:
strguid = (String) it.next();
I get this which does not have...