How to send a string value to a mail_id

Hi everybodyI am trying to send a password to a user mail_id.I got the password from database as an object value.so how to convert this object to string type and send to the user Mail_id.Please helpMessage was edited by: vizc
[274 byte] By [vizca] at [2007-11-26 15:07:40]
# 1
OP, your question is not clear. Is this what u r looking for?System.out.println((new Object()).toString());Cheers
astelaveestaa at 2007-7-8 8:57:44 > top of Java-index,Java Essentials,New To Java...
# 2
Actually i hav a task to get the password from database and send it to the respective user mail_id.But i got this password as object value. so what should i do to send it to the user.Hope u got this time.Thank u
vizca at 2007-7-8 8:57:44 > top of Java-index,Java Essentials,New To Java...
# 3
What is an "object value" and why doesn't the DB deliver a String?
CeciNEstPasUnProgrammeura at 2007-7-8 8:57:44 > top of Java-index,Java Essentials,New To Java...
# 4

We retrive the password as string but stored in an object.

So i want to get back once again to string

Object resultObj = null;

try

{

resultObj = ServiceUtils.verifyQuerry(argList);

// Here we get the password from DB

}

catch(MoveoException mex)

{

throw new ServletException(mex.getMessage(),mex);

}

if(null != resultObj)

{

CompanyDO companyDO = (CompanyDO) resultObj;

// Here i want print the password

return nextPage;

}

How to do this ?

vizca at 2007-7-8 8:57:44 > top of Java-index,Java Essentials,New To Java...
# 5
> We retrive the password as string but stored in an object.Objects can't store Strings. You mean you store a String in a reference of type Object.So what's wrong with reply 1 or a cast?
CeciNEstPasUnProgrammeura at 2007-7-8 8:57:44 > top of Java-index,Java Essentials,New To Java...