1.为什么struts2的Action处理请求的时候每次都重复处理一次,就是一个请求处理两次。
我跟踪之后发现第一次运行返回SUCCESS之后又从头开始运行,这样大多数情况下都有异常,但是前台页面是正常的,后台打印异常。
有没有人遇到过类似的问题啊对了,Action是在spring工厂里初始化的,scope参数为"request"2.一下表单
<table align="center">
<form action="<%=basePath %>register/Register.action" method="post" name="register" onsubmit="return registerUser()">
<s:textfield name="userName" label="User Name" />
<s:password name="password1" label="Password" />
<s:password name="password2" label="Confirm" />
<s:submit value="注册" />
<form>
</table>解析之后
<table align="center">
<form action="http://localhost:8080/cn.org.act.sdp.repository.newfront/register/Register.action" method="post" name="register" onsubmit="return registerUser()">
<input type="text" name="userName" value="" id="userName"/>
<input type="password" name="password1" id="password1"/>
<input type="password" name="password2" id="password2"/>
<input type="submit" id="" value="注册"/>
<form>
</table>
我记得原来都是包装在<tr>和<td>元素之中,而且label元素也显示出来,现在不知道为什么这样了?tomcat容器...
有没有人遇到过类似的问题啊...先谢谢了
我跟踪之后发现第一次运行返回SUCCESS之后又从头开始运行,这样大多数情况下都有异常,但是前台页面是正常的,后台打印异常。
有没有人遇到过类似的问题啊对了,Action是在spring工厂里初始化的,scope参数为"request"2.一下表单
<table align="center">
<form action="<%=basePath %>register/Register.action" method="post" name="register" onsubmit="return registerUser()">
<s:textfield name="userName" label="User Name" />
<s:password name="password1" label="Password" />
<s:password name="password2" label="Confirm" />
<s:submit value="注册" />
<form>
</table>解析之后
<table align="center">
<form action="http://localhost:8080/cn.org.act.sdp.repository.newfront/register/Register.action" method="post" name="register" onsubmit="return registerUser()">
<input type="text" name="userName" value="" id="userName"/>
<input type="password" name="password1" id="password1"/>
<input type="password" name="password2" id="password2"/>
<input type="submit" id="" value="注册"/>
<form>
</table>
我记得原来都是包装在<tr>和<td>元素之中,而且label元素也显示出来,现在不知道为什么这样了?tomcat容器...
有没有人遇到过类似的问题啊...先谢谢了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货