📄 loginaction.java~36~
字号:
package prj37_1;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import factory.*;
import javax.rmi.PortableRemoteObject;
public class LoginAction extends Action {
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
/**@todo: complete the business logic here, this is just a skeleton.*/
LoginForm loginForm = (LoginForm) actionForm;
String account = loginForm.getAccount();
String password = loginForm.getPassword();
try {
Object obj = EjbFactory.getEjbHome("CustomerBo");
CustomerBoHome home = (CustomerBoHome) PortableRemoteObject.narrow(obj,
CustomerBoHome.class);
CustomerBo cbo = home.create();
CustomerDto cus = cbo.login(account,password);
if(cus!=null){
request.get
}
}
catch (Exception ex) {
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -