This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Value not populating for one of the attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Value not populating for one of the attribute" Watch "Value not populating for one of the attribute" New topic
Author

Value not populating for one of the attribute

Hardik Modi
Greenhorn

Joined: Jul 31, 2012
Posts: 8
I am trying to populate the values from couple of attributes and storing all this information in file via below code.



So while compiling this code, I am getting all the values for the attributes but not for the Email.

out.write("IdentityName,UserName,First_Name,Last_Name,WorkforceID,Organization,Email");

its constantly writing null value in file.

I am not able to figure out where i am making the mistake.any takers and help me out.
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4168
    
  21


That line of code returns null. There is no "mail" attribute in user - either you are using the wrong name ("mail") to look the value up or you are not storing the value to begin with.


Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Value not populating for one of the attribute
 
Similar Threads
Copy file
println Vs newLine method
how to export the data in file using java
downloading images?
Unable to create directory in OID