`
Odysseus_110
  • 浏览: 117038 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
5.4.1 Equality (==) and Identity (===) The == and === operators check whether two values are the same, using two different definitions of sameness. Both operators accept operands of any type, and both return true if their operands are the same and false if they are differen ...
SSH上传文件的时候 报错  无法上传文件 可能是因为存在本地的文件所在的文件夹的名称含有非法字符。   今天写ant的正则匹配表达式,由于换行符没有匹配到,加上\r\n就好了,必须两个一起加。   property 文件里是这样的,   WASSDK-WinX32-FP0000013.status=youareright WASEmbeded-WinX32-FP0000013.status=youareright   如果不加 \r\n的话就把换行符一起匹配进去了,所以加上之后就能正确的匹配到 "youareright" 字符串了。         &l ...
最近做的东西想要用js直接读取json格式的文件,读取的文件是标准的json格式,所以直接采用eval函数得到数据。   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <t ...
action 代码:     public void savemovieinfo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { // TODO Auto-generated method stub MovieInfoForm mif = (MovieInfoForm)form; // Check that we have a file upload request try { FormFi ...
使用java程序直接读取硬盘文件上传和使用控件上传其实都是一样的,都是利用 common net 包的FTPClient 等类来上传文件,不同之处就在于如何在客户端获取文件。前一种方式是通过java的流对象来读取文件(InputStream iStream = new FileInputStream(fileName);),而后一种方式要通过程序解析来自客户端的request请求来得到文件流,前一种方式的代码可以参考上一篇《ftp 文件上传 文件损坏》,对于后一种方式,首先到apache上下载 commons fileupload 包,注意这个jar是基于commons-io 的,所以同时需要下 ...
代码参考上一篇《ftp文件上传 文件损坏》       client.setControlEncoding("GBK"); client.uploadFile("D:\\video_1080p\\1080P\\我们Taxi3_WMVHD_Extr.wmv", "Taxi2_WMVHD_Extract.wmv");   public void setControlEncoding(String ControlEncoding) throws IOException { ftpClient.setContro ...
    这里演示的是配置好ftp服务器后,通过java程序读取硬盘文件上传(相对于通过网页控件<input type="file">获得文件上传)。首先到apache上下载 common net 包, 然后参考http://www.iteye.com/topic/139300或者http://www.iteye.com/topic/173786 提供的代码:   具体的操作类:     import java.io.File; import java.io.FileInputStream; import java.io.FileOutput ...
我的开发环境:Eclipse 3.3.2 + MyEclipse 6.0.1 + Tomcat 6.0.16,经常报以下错误:   An internal error occurred during: "Processing Dirty Regions". org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper An internal error occurred during: "JSP Content Validator". org/eclipse/wst ...
配置完ssh后,启动tomcat,发现:   严重: action: null org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionfactoryid' defined in ServletContext resource [/WEB-INF/config/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoS ...
启动工程后,开始运行正常,但运行一段时间访问量稍微变大后控制台会报错:   1. org.hibernate.exception.JDBCConnectionException: could not execute query 2. at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74) 3. a ...
启动myeclipse工程后 MyEclipse6.0控制台下的错误提示: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang ...
将项目部署到resin后,发现无法启动:     [00:00:42.536] Server[] starting [00:00:42.536] [00:00:42.536] Windows Vista 6.0 x86 [00:00:42.537] Java 10.0-b19, 32, mixed mode, sharing, GB18030, zh, Sun Microsystems Inc. [00:00:42.537] resin.home = D:\resin-3.0.22 [00:00:42.538] server.root = null [00:00:42.538 ...
在Eclipse里部署resin的时候不能有空格,否则会报错:   unknown argument 'Files\resin3\conf\resin.conf' usage: Resin [-conf resin.conf] [-server id]   windows默认安装路径是Program Files,如果把resin安装在这个目录里,直接启动resin是没有问题的,但如果在Eclipse里部署resin后再在Eclipse里启动的话就会报上面的错误,解决办法就是去掉安装路径 Program Files 中间的空格。另外AppServ 如果安装的路径中有中文汉字或者空格也 ...
映射文件见上一篇《hibernate 级联删除》       插入时候报错:       org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.hotel.dao.Movie]; uncategorized SQLException for SQL [insert into hotel.movie (moviename, moviename_sys, director, impersonator, charge, intro, imgsrc, ...
配置文件和pojo类如下:   <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyE ...
Global site tag (gtag.js) - Google Analytics