JavaScript with servlet Get method
JavaScript with servlet Get method
我在JSP中有以下表单元素:
<form name="testForm" action="./test.do" method="post">
</form>
现在我想用JavaScript提交一个带有servlet get方法的表单。
只需将方法从post改为get。
<form name="testForm" action="./test.do" method="get">
</form>
现在,当提交表单时,数据将使用GET而不是POST参数提交。
相关文章:
- 有没有一种方法可以防止img get请求使用css或js发生
- CORS-重定向到第二个GET正在接收的页面
- jQuery Ajax GET请求工作不正常
- 如何将PHP get查询转换为Meteor's HTTP.get()
- 返回/从Twit's客户端.get
- AngularJS错误:提供程序必须从$get工厂方法返回值
- 如何在router.get()方法中传递url作为参数
- 使用Javascript/JQuery获取JSON GET数据
- 如何使用php文件中的GET来获取我在.js文件中声明的变量
- 如何显示Ajax Get-Method中的数据
- 在 ajax get-method Javascript 中发送对象
- Backbone Collection get(id) method
- return request method = GET but i send request = POST (ajax)
- className vs. get/setAttribute method
- jQuery .GET method
- HTTP Get Method获取JSON数据
- $http({method})不工作,但$http.get正在工作
- request.method=='获取',但是在GET QueryDict对象内没有项目
- jQuery通过method=get隐藏提交地址中没有值的字段,效果不佳
- JavaScript with servlet Get method