jsp-->action

1、用form表单传值,必须写在form中。可以用

<s:form onsubmit="return check()" action="action!d.do"  mothed="post">

<s:hidden name="param" value="q">  textfield password ...

 获取:ServletActionContext.getRequest().getParameter("param");param 必须加get,set

posted @ 2012-11-07 17:28  墙头一颗草  Views(149)  Comments(0Edit  收藏  举报