WEB开发网
开发学院软件开发Java dwr实现找回密码的功能 阅读

dwr实现找回密码的功能

 2009-09-17 00:00:00 来源:WEB开发网   
核心提示: Service层UnionUsersServiceImpl Java代码publicStringgetPassword(Stringaccount,Stringemail){try{returnthis.getUnionUsersDao().getPassword(account,email);

Service层UnionUsersServiceImpl

Java代码   

public String getPassword(String account, String email){ 
 try { 
  return this.getUnionUsersDao().getPassword(account, email); 
 } catch (Exception e) { 
  e.printStackTrace(); 
 } 
 return ""; 
 } 

applicationContext.xml中相关配置

Java代码   

     <!-- dao 注入--> 
 <bean id="UnionUsersDAO" class="com.ao.dao.UnionUsersDAO"> 
 <property name="sessionFactory"> 
  <ref bean="sessionFactory" /> 
 </property> 
 </bean> 
 
     <!-- service 注入--> 
 <bean id="unionUsersService" 
 class="com.ao.service.impl.UnionUsersServiceImpl"> 
 <property name="unionUsersDao"> 
  <ref bean="UnionUsersDAO" /> 
 </property> 
 </bean> 

dwr.xml中的配置

Java代码   

    <create creator="spring" javascript="UsersService" scope="application"> 
    <param name="beanName" value="unionUsersService" /> 
    </create> 
 
    <create creator="new" javascript="SendMail" scope="application"> 
    <param name="class" value="com.ao.web.util.SendMail" /> 
    </create> 

上一页  1 2 3 4  下一页

Tags:dwr 实现 找回

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接