* @param request
* @param user
* @return
*/
public UserBean formToBean() {
UserBean ubean = new UserBean();
// ��ֵ
ubean.setName(getName().trim());
ubean.setNickname(super.autoFiltrate(getNickname().trim()));
ubean.setBirth(getBirth());
ubean.setKeepDays(getKeepDays());
//ubean.setLastAddr(request.getRemoteAddr());
ubean.setPassword(getPassword());
if (StringUtils.isNotEmpty(getResume()))
ubean.setResume(super.autoFiltrate(getResume()));
ContactInfo ci = new ContactInfo();
if (StringUtils.isNotEmpty(getEmail()) && StringUtils.isEmail(getEmail()))
ci.setEmail(getEmail());
if (StringUtils.isNotEmpty(getHomePage()))
ci.setHomePage(getHomePage());
if (StringUtils.isNotEmpty(getMobile()))
ci.setMobile(getMobile());
if (StringUtils.isNotEmpty(getMsn()))
ci.setMsn(getMsn());
if (StringUtils.isNotEmpty(getQq()))
ci.setQq(getQq());
if (StringUtils.isNotEmpty(getProvince()))
ci.setProvince(getProvince());
if (StringUtils.isNotEmpty(getCity()))
ci.setCity(getCity());
//ci.setMobile(RequestUtils.getRequestMobile(request));
ubean.setContactInfo(ci);
ubean.setSex(getSex());
SiteBean site = null;
// ���վ���Ƿ���Ч
if (getSid() > 0)
site = SiteDAO.getSiteByID(getSid());
ubean.setSite(site);
return ubean;
}