<s:form action="role_%{ id == null ? 'add' : 'edit' }"> <s:hidden name="id"></s:hidden> 转载于:https://www.cnblogs.com/qiyc/p/5831633.html