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