用的struts1.
<!-- 显示页面提示信息 1页面 -->
<table>
<tr>
<td colspan="2"><font color="red" size=3> <logic:notEmpty
name="projectForm" property="errorMsg">
<bean:write name="projectForm" property="errorMsg" />
</logic:notEmpty>
</font></td>
</tr>
</table><!-- 显示页面提示信息 2页面 -->
<table>
<tr>
<td colspan="2"><font color="red" size=3> <logic:notEmpty
name="companyForm" property="errorMsg">
<bean:write name="companytForm" property="errorMsg" />
</logic:notEmpty>
</font></td>
</tr>
</table>
在执行页面1的action后跳到自身页面的话,有提示信息出现。
在执行页面1的action后,再执行2页面的.do跳到2页面的话,就没有信息出现。因为2者存放信息的form不同,
用session的话,提示信息又永远存在。新手,求破!
<!-- 显示页面提示信息 1页面 -->
<table>
<tr>
<td colspan="2"><font color="red" size=3> <logic:notEmpty
name="projectForm" property="errorMsg">
<bean:write name="projectForm" property="errorMsg" />
</logic:notEmpty>
</font></td>
</tr>
</table><!-- 显示页面提示信息 2页面 -->
<table>
<tr>
<td colspan="2"><font color="red" size=3> <logic:notEmpty
name="companyForm" property="errorMsg">
<bean:write name="companytForm" property="errorMsg" />
</logic:notEmpty>
</font></td>
</tr>
</table>
在执行页面1的action后跳到自身页面的话,有提示信息出现。
在执行页面1的action后,再执行2页面的.do跳到2页面的话,就没有信息出现。因为2者存放信息的form不同,
用session的话,提示信息又永远存在。新手,求破!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货