你的jsp里面用了 <html:form>标签吗要不看看代码
解决方案 »
- 郁闷
- java访问web service,得到的是xml,从访问到解析,怎么做啊?
- 初学者的配置问题
- action 传2个参数
- 无法使用@Inject注解
- TOMCAT无故停止响应??
- 我安装了tomcat,但是不能访问欢迎页面,我应该怎样检查设置??
- 新手请教:我的文本框出错,不知为什么,请教各位,多谢!
- sql中的bit类型在websphere中的映射问题(J2EE)
- 简单问T:jsp打成的war包放在tomcat的webapps下能运得,但deploy到weblogic7上就不能运行?
- 求SQL Server 2000 Driver for JDBC Service Pack 4 驱动程序
- 一个关于log4j问题,将日志信息记录到mysql中
都是true,请大家看看:
jsp:<html:form action="/PeixunPsw.do" method='post' focus="newpsd">
输入新密码
<html:text property="newpsd" size="12" maxlength="10" />
<br>
新密码确认
<html:text property="againpsd" size="12" maxlength="10" />
<br><br>
<html:submit value="确定" style="WIDTH: 80px;HEIGHT:23px;font-size=15" />
<html:reset value="重写" style="WIDTH: 80px;HEIGHT:23px;font-size=15" />
</html:form>action.java:
if (isTokenValid(request)){
return mapping.findForward("success");
}else{
return mapping.findForward("fail");
}
//销毁产生新令牌
this.resetToken(request);
return mapping.findForward("success");
}else{
return mapping.findForward("fail");
}
都是false,即使是第一次提交也是这样,这是怎么回事??
aChinese(一个中国人),我按照你说的做了,结果一样
页面里放 <html:form>
保存的Action里调用
if (isTokenValid(request)){
//销毁产生新令牌
this.resetToken(request);
return mapping.findForward("success");
}else{
return mapping.findForward("fail");
}
然后再提交到action?
this.saveToken(request);
然后再分发到jsp;
}
的总是false,即使jsp第一次提交到action也是
if (isTokenValid(request)){
this.resetToken(request);
this.saveToken(request);
return mapping.findForward("success");
}else{
this.saveToken(request);
return mapping.findForward("fail");
}
this.saveToken(request);前面有调用吗
谢谢 !!大家
//执行语句
return mapping.findForward("");
}else{
this.resetToken(request);
this.saveToken(request);
return mapping.findForward("");