struts2动态跳转action,修改和添加共用一个页面 <s:form action="role_%{ id == null ? 'add' : 'edit' }"> <s:hidden name="id"></s:hidden>