loginaction.java.txt
来自「购物车程序:主要用Struts+Hibernate框架实现」· 文本 代码 · 共 26 行
TXT
26 行
package com.rmeng.shoppingcart.controller;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.tarena.biz.SystemBiz;
public class LoginAction extends Action{
private SystemBiz systemBiz = new SystemBiz();
public ActionForward execute(ActionMapping mapping ,ActionForm form,
HttpServletRequest request,HttpServletResponse response)throws Exception{
LoginForm loginForm = (LoginForm)form;
boolean exist = systemBiz.login(loginForm.createUser());
if(exist)
{
return mapping.findForward("success");
}else
{
return mapping.findForward("fail");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?