commons-fileupload 上传时传递参数问题解决
2011-03-18 11:17
246 查看
<script type="text/javascript">
function send(){
document.getElementById("formid").action = "<%=basePath %>login.jsp?images=" + document.getElementById("textvalue").value;
document.getElementById("formid").submit();
}
</script>
<body>
<form action="" id="formid" method="post" enctype="multipart/form-data">
<input type="text" id="textvalue"/>
<input type="file" name="file"/>
<input type="button" onclick="send()">
</form>
在form中post不能再传非数据类型,只能用get。
function send(){
document.getElementById("formid").action = "<%=basePath %>login.jsp?images=" + document.getElementById("textvalue").value;
document.getElementById("formid").submit();
}
</script>
<body>
<form action="" id="formid" method="post" enctype="multipart/form-data">
<input type="text" id="textvalue"/>
<input type="file" name="file"/>
<input type="button" onclick="send()">
</form>
在form中post不能再传非数据类型,只能用get。
相关文章推荐
- commons-FileUpload文件上传下载,及中文乱码、IE7路径错误问题解决
- 使用commons-fileupload实现表单提交上传,并取出参数,解决了乱码
- 使用commons-fileupload实现文件(doc、pdf)上传,提取表单参数并解决中文乱码
- 【java】[文件上传jar包]commons-fileUpload组件解决文件上传(文件名)乱码问题
- commons-fileUpload组件解决文件上传乱码问题
- jQuery插件之ajaxFileUpload(异步上传图片并实时显示,并解决onchange后ajaxFileUpload失效问题)
- 解决jsp参数传递中文乱码的问题
- 如何解决JavaScript中UUID作为方法参数在方法中无法传递而数字却正常传递的问题
- 急需解决------关于在两个窗体之间传递参数的问题---------解决了
- JavaScript(js) 前台 参数传递乱码 转码 问题--已解决! 中文字符乱码
- JSP页面中超链接传递中文参数出现乱码问题解决方法
- 修改Nginx与Apache配置参数解决http状态码:413上传文件大小限制问题
- csharp编写界面,opencv编写类库,解决 Pinvoke过程中的参数传递和平台调用问题
- [转]解决Tomcat5.0.19中文参数传递的问题
- HTML的Get方法URL传递中文参数,解决乱码问题
- javascript函数式编程---解决事件参数传递问题
- JavaScript调用传递变量参数的相关问题及解决办法
- Commons-fileupload组件上传中文文件名乱码问题
- 解决WCF接口无法传递object参数的问题
- 解决 android客户端和jsp传递中文参数乱码的问题