<html:form action="/systemLogin" focus="managerID"><html:submit/>
给日本人做..不厚道...
解决方案 »
- Connection is read-only. Queries leading to data modification are not allowed
- 挑战!高手请进,Java导数据问题!
- 网上问卷调查源代码
- byte data[] = new byte[length];这个length最大长度为多少
- Tomcat6.0的问题,不解!好心人帮帮忙
- spring配置一个动态属性值问题
- tomcat6(窗口模式)正常,tomcat6w(服务模式)失败,二者有何区别呀?
- 一个JSP页面的问题请高手给指教一下
- 如何解决这种登录问题(也许你也遇到过...)
- 我的机子现在装不了weblogic,哪位有没有其它可以与JB一起开发EJB的服务器推存
- 为什么在多态性时候出现错误呢?
- 求助:设置数据库连接池的JNDI名时的疑问
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;import org.apache.struts.action.*;
public class Login_Action extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward();
Login_Form login_Form = (Login_Form)form;
Login_Logic logic = new Login_Logic();
String password = logic.getPassword(login_Form.getManagerID());
if(password.equals(login_Form.getPassword())) {
forward = mapping.findForward("loginFailure.jsp");
//forward = mapping.findForward("enterpriseInfoManagerMenu.jsp");
}
else {
forward = mapping.findForward("enterpriseInfoManagerMenu.jsp");
}
// Finish with
return (forward);
}
}
forward = mapping.findForward("loginFailure.jsp");
//forward = mapping.findForward("enterpriseInfoManagerMenu.jsp");
错了!