package springexample.contoller;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import springexample.commands.AccountDetail;
import springexample.commands.LoginCommand;
import springexample.services.AccountServices;
import springexample.services.AuthenticationService;
/**
* @author naveenb
*/
public class LoginBankController extends SimpleFormController {
public LoginBankController(){
}
protected ModelAndView onSubmit(Object command) throws Exception{
LoginCommand loginCommand = (LoginCommand) command;
authenticationService.authenticate(loginCommand);
AccountDetail accountdetail = accountServices.getAccountSummary(loginCommand.getUserId());
return new ModelAndView(getSuccessView(),"accountdetail",accountdetail);
}
private AuthenticationService authenticationService;
private AccountServices accountServices;
/**
* @return Returns the accountServices.
*/
public AccountServices getAccountServices() {
return accountServices;
}
/**
* @param accountServices The accountServices to set.
*/
public void setAccountServices(AccountServices accountServices) {
this.accountServices = accountServices;
}
/**
* @return Returns the authenticationService.
*/
public AuthenticationService getAuthenticationService() {
return authenticationService;
}
/**
* @param authenticationService The authenticationService to set.
*/
public void setAuthenticationService(
AuthenticationService authenticationService) {
this.authenticationService = authenticationService;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
spring第一个示例Application
共31个文件
java:7个
class:7个
jar:6个
需积分: 0 12 下载量 152 浏览量
2008-07-22
18:02:05
上传
评论
收藏 1.91MB RAR 举报
温馨提示
spring第一个示例Application,在MyEclipse下同时导入Hibernate框架,源码可导入(Import)
资源推荐
资源详情
资源评论
收起资源包目录
webspring.rar (31个子文件)
webspring
.project 1KB
.mymetadata 300B
WebRoot
login.jsp 1KB
WEB-INF
sampleBanking-services.xml 384B
web.xml 1KB
spring.tld 7KB
lib
commons-logging.jar 31KB
spring-web.jar 116KB
spring-webmvc.jar 193KB
jstl.jar 17KB
spring.jar 1.59MB
standard.jar 287KB
classes
springexample
contoller
LoginBankController.class 2KB
services
AuthenticationService.class 1KB
AccountServices.class 2KB
commands
Account.class 1KB
AccountDetail.class 861B
User.class 930B
LoginCommand.class 761B
sampleBankingServlet-servlet.xml 1KB
index.jsp 828B
META-INF
MANIFEST.MF 39B
accountdetail.jsp 1KB
.myeclipse
src
springexample
contoller
LoginBankController.java 2KB
services
AccountServices.java 1KB
AuthenticationService.java 781B
commands
AccountDetail.java 651B
User.java 894B
Account.java 1KB
LoginCommand.java 686B
.classpath 774B
共 31 条
- 1
资源评论
fjfdszj
- 粉丝: 46
- 资源: 69
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Wireshark-4.2.4-x64.zip
- 2022年11月软件设计师上
- 基于VB+ACCESS教学管理系统(参考文献+源代码).zip
- 一个工具的流程图 demo
- EMC3080的用于连接FogCloud的固件
- 基于VB+Access酒店客房管理系统(源代码+参考文献+报告).zip
- 应用笔记LAT1244+奇怪的NRST+管脚异常复位问题
- SEMI标准的解释说明
- tensorflow-2.8.2-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-rocm-2.12.0.560-cp311-cp311-manylinux2014-x86-64.whl
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功