我有一个表格,我要求客户输入几个细节,我怎样才能得到响应从Web服务器
<form id="redirectForm" accept-charset="UTF-8" method="post" action="https://test.test.com//api/v1/order/create" >
customerName: <input type="text" name="customerName" value=<%=customerName %> />
customerEmail: <input type="text" name="customerEmail" value=<%=customerEmail %> /><br><br>
customerPhone: <input type="text" name="customerPhone" value=<%=customerPhone %> /><br><br>
signature:<input type="text" name="signature" value=<%=signature %> />
在根据形式的行动提交页面重定向和显示JSON型响应(状态来+付款链接)。 回应是这样的:
{"status":"OK","paymentLink":"https:\/\/test.test.com\/billpay\/order\/3ackwtoyn7oks4416fomn"}
帮助我走出这个 我在JSP的工作。 预先感谢您。
是JSON –
响应东阳它的语法看起来像一个JSON –
我不知道这是什么,我需要访问此。是的,它看起来像JSON。我也是初学者。 –