我的 JSF 页面上有以下表格,该表格发布到外部信用卡处理器。我想改用 JSF 操作方法,以便编写一些业务逻辑。如何通过操作方法发布帖子并包含以下字段?
<form action="#{checkoutBean.sagepayURL}" method="post"
id="SagePayForm" name="SagePayForm">
<input type="hidden" name="VPSProtocol"
value="#{checkoutBean.sagepayMessage.vpsProtocol}" /> <input
type="hidden" name="TxType"
value="#{checkoutBean.sagepayMessage.transactionType}" /> <input
type="hidden" name="Vendor"
value="#{checkoutBean.sagepayMessage.vendor}" /> <input
type="hidden" name="Crypt" class="crypt"
value="#{checkoutBean.sagepayMessage.crypt}" /> <input
type="submit"
value="Proceed to Checkout" />
</form>