摘要:
问题:每次打开eclipse工程中的js文件报错,但不影响功能使用原因:一些jquery的页面是用freemark写的,而eclipse不识别freemark标签,所以验证时会报错。解决方法:去掉eclipse对js文件的验证 1. 找到报错的工程所在位置 2.删除 .properties文件中的如下代码: <buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments> </arguments></buildCommand 阅读全文
摘要:
主要优点是实现无刷新上传文件,本篇主要利用jquery的插件ajaxfileupload.js来实现异步上传功能。一、异步上传单个文件代码展示: 1.jsp页面(一定要引入jquery.js和ajaxfileupload.js) 1 <script type="text/javascript"> 2 function ajaxFileUpload(){ 3 $("#showImage").ajaxStart(function(){ 4 $(this).hide(); 5 }).ajaxComplete(funct... 阅读全文
摘要:
通过struts2实现文件上传功能,主要jar包是不可少的包括:aopalliance.jar ------------------------------------为aop(面向切面)提供了最普通和通用的接口asm-3.3.jar ----------------------------------------操作java字节码的类库asm-commons-3.3.jar --------------------------------提供了基于事件的表现形式commons-fileupload-1.2.2.jar -----------------------实现struts... 阅读全文