我有一个选择标签。s:select
表格内。我想向该操作发送一个发布请求。我有 struts 2 json 插件。我不是 javascript 或 jquery 中的任何人。
<s:form action="selectFileType" method="post"
id="selectFileTypeForm">
<div>
<s:select id="select" headerKey=""
headerValue="%{getText('uploadAttachmentType.please.select')}"
name="uploadAttachmentType" list="attachmentTypeList"
required="true"
onchange="this.form.submit();"></s:select>
<s:hidden id="declarationObj_ideclare"
name="declarationObj.ideclare" />
<s:hidden id="declarationObj_completingpersonname"
name="declarationObj.completingpersonname" />
<s:hidden id="declarationObj_completingpersonofficaltitle"
name="declarationObj.completingpersonofficaltitle" />
<s:hidden id="declarationObj_completingpersonphone"
name="declarationObj.completingpersonphone" />
<s:hidden id="declarationObj_completingpersonext"
name="declarationObj.completingpersonext" />
</div>
</s:form>
`