刚学,表示不是很懂。比如说execute方法里面的
ActionContext ac = ActionContext.getContext;
if("test".equals(userName) &&
"test".equals(password)){
msg = "登录成功,欢迎" + this.userName;
returnthis.SUCCESS;
}else{
msg = "登录失败,用户名或密码错";
returnthis.ERROR;
}
难道不用获取用户的输入再进行判断的嘛?
这里表示很不懂
已采纳
Struts 2 的验证跳转问题
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答