dwr实现找回密码的功能
2009-09-17 00:00:00 来源:WEB开发网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>
更多精彩
赞助商链接