1.标签
select标签
<s:select name="ttype.id" list="types" listKey="id" listValue="name" headerKey="0" headerValue="==请选择==">
隐藏变量
<s:hidden name="T2" value="value1"></s:hidden>
取值
<s:property value="username"/>
url标签
<s:url action="NF_I_ProjectNumberAddInitialAction" id="NumberAdd">
<s:param name="projectCD" value="123"/>
</s:url>
<s:a href="%{NumberAdd}">番号追記申請</s:a>
样式:cssStyle
<input type="button" name="newrule" align="left" value="保存"
onClick="this.form.action='CM_I_MasterAuthoritySaveAction';this.form.submit()" />
2.乱码问题
带参数重定向到action会乱码,解决方法:
<action name="actiona" class="com.ActionA">
<result name="success" type="redirect">
<param name="location">/actionb.action?username=${user.userName}</param>
<param name="encode">true</param>
</result>
</action>