Search:

Type: Posts; User: apocalipsis1982

Search: Search took 0.14 seconds.

  1. Re: Saving string value of an iterator Object into a variable.

    Thank you everybody! Special thanks to Norm!
  2. Re: Saving string value of an iterator Object into a variable.

    while (it.hasNext()) {
    strguid = (String) it.next();
    out.println(attrName + "=" + strguid + "");


    You were right. That fixed the problem man!
  3. Re: Saving string value of an iterator Object into a variable.

    I will try that :-) And will report back after lunch.
  4. Re: Saving string value of an iterator Object into a variable.

    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...
  5. Re: Saving string value of an iterator Object into a variable.

    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...
  6. Re: Saving string value of an iterator Object into a variable.

    So...Is it possible to do a it.ToString(); instead of doing a next() on the object?
  7. Re: Saving string value of an iterator Object into a variable.

    if ((attrVals != null) && !attrVals.isEmpty()) {
    Iterator it = attrVals.iterator();
    while (it.hasNext()) {
    out.println(attrName + "=" +...
  8. Re: Saving string value of an iterator Object into a variable.

    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() +...
  9. Re: Saving string value of an iterator Object into a variable.

    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:...
  10. Saving string value of an iterator Object into a variable.

    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...
Results 1 to 10 of 10