意思如下:
<action path="/insertMessage"
name="RecallmessageForm"
type="com.message.action.InsertAction"
scope="request"
validate="true"
input="/recallMessage.do?messageId=request.getSession().getAttribute('messageid').hashCode()" >
<forward name="success" path="index_definition17"/>
</action>input="/recallMessage.do?后面怎么写才能把session范围里的值传到action类里接受,我运行后提示的错误如下,不知为什么?请高手来帮解答下.
error:严重: Servlet.service() for servlet action threw exception
java.lang.NumberFormatException: For input string: "request.getSession().getAttribute('messageid').hashCode()"
<action path="/insertMessage"
name="RecallmessageForm"
type="com.message.action.InsertAction"
scope="request"
validate="true"
input="/recallMessage.do?messageId=request.getSession().getAttribute('messageid').hashCode()" >
<forward name="success" path="index_definition17"/>
</action>input="/recallMessage.do?后面怎么写才能把session范围里的值传到action类里接受,我运行后提示的错误如下,不知为什么?请高手来帮解答下.
error:严重: Servlet.service() for servlet action threw exception
java.lang.NumberFormatException: For input string: "request.getSession().getAttribute('messageid').hashCode()"
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货