随笔分类 - j2ee
j2ee
摘要:@RequestMapping(value = "/upload") public String handleFormUpload(MultipartHttpServletRequest request){ String b = request.getParameter("a"); Syst...
阅读全文
摘要:【uploadify3.1使用二】批量文件、图片上传
阅读全文
摘要:在使用控件上传文件时,有时会需要获取文件本地路径展示给客户,这时可以通过这样的方式获取文件本地路径:document.getElementById('file_upl').value这在IE7及以前的IE浏览器版本上都没有问题,但是到IE8上面,就不行了,在IE8中你只会获取到这样的路径:"C:\f...
阅读全文
摘要:js给action传真是地址的时候,处于安全,传到action中 浏览器会改变路径变为C:\fakepath\ftp.txt,但是原始路径却是C:\Documents and Settings\Administrator\桌面\ftp.txt下面就是获得原始路径的方法var url = getPat...
阅读全文
摘要://js获取项目根路径,如: http://localhost:8083/uimcardprjfunction getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPat...
阅读全文
摘要:在html中如上面的代码,用文件上传对话框选择文件后,如果选择"D:\\temp\file\test.txt"文件,alert(filename)却是"C:\\fakepath\test.txt"这是为什么?我想要取得原本的文件路径及文件名,应该怎么办?先谢谢各位了。input的时候把onchang...
阅读全文
摘要:System.getProperty("catalina.base"),服务器配置目录
阅读全文
摘要:The server refused this request because the request entity is in a format not supported by the requested resource for the requested method1、Spring Mvc...
阅读全文
摘要:The server refused this request because the request entity is in a format not supported by the requested resource for the requested method1、Spring Mvc...
阅读全文
摘要:使用jquery提交,比如monthIncome的值是一个数组,在Java里用request.getParameterValues("monthIncome");取不到值,要这样才行request.getParameterValues("monthIncome[]")。如果使用struts又...
阅读全文
摘要:jquery实现漂亮文件上传表单样式
阅读全文
摘要:例如:当我们在做批量添加或者更新时,在Controller层接收表单数据的问题!我们做一个对用户批量添加的实验!用户Model:public class User { //用户名 private String username; //密码 private Strin...
阅读全文
摘要:无刷新上传图片 可以实时预览 选择图片后即自动上传,没有上传按钮
阅读全文
摘要:cvc-complex-type.2.3: Element 'beans' cannot have character [children]
阅读全文
摘要:Maven+SpringMVC+MyBatis 上传图片
阅读全文
摘要:spring mvc 图片上传,图片压缩、跨域解决、 按天生成目录 ,删除,限制为图片代码等相关配置
阅读全文
摘要:使用jQuery在上传图片之前实现缩略图预览
阅读全文
摘要:编程语言---------------------------------------------前台:$(document).ready(function() { var data= []; $.ajax({ type : 'post', url : 'orginfo.do?action=getN...
阅读全文
摘要:Jquery 使用Ajax获取后台返回的Json数据后,页面处理
阅读全文