<action name="OTISUP310_PREV" method="beforeSearch" class="com.oceantrust.struts.action.OTISUP310Action">
<result name="success">/views/userViews/OTISUP310.jsp</result>
<result name="my">/views/userViews/OTISUP310.jsp</result>
<result name="input">/views/userViews/OTISUP310.jsp</result>
<result name="error">/errorView.jsp</result>
<interceptor-ref name="loginUser"/>
</action>以上struts 配置intCurPage = Integer.parseInt(otisup310Dto.getStrCurPage());上为action 端。
otisup310Dto 为页面
这样的代码,发布以后,客户点的时候,otisup310Dto.getStrCurPage() 这段为null,此是从页面过来,要空也只能是“”(空字符串)。而且这里不是一定报nullpoint, 有时可以有时不可以。有牛人分析分析出现这种情况的原因