摘要: 演示1 2 3 4 阅读全文
posted @ 2012-04-17 16:05 yhhazr 阅读(93) 评论(0) 推荐(0)
摘要: 12 阅读全文
posted @ 2012-04-17 15:54 yhhazr 阅读(88) 评论(0) 推荐(0)
摘要: import java.io.File; import java.io.FileInputStream; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPReply; public class test { private FTPClient ftp; /** * * @param path 上传到f... 阅读全文
posted @ 2012-04-06 09:49 yhhazr 阅读(322) 评论(0) 推荐(0)
摘要: <link href="static/uploadify/uploadify.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="static/uploadify/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="static/uploadi 阅读全文
posted @ 2012-03-03 16:57 yhhazr 阅读(280) 评论(0) 推荐(0)
摘要: 在虚拟机里安装好ubuntu后,网络连接方式需要选择 bridge这样方便设置ubuntu的ip等。然后就开始Mysql的远程访问要通过远程连接MySQL,需要做两步:第一步是要创建一个可以远程连接的 MySQL 用户mysql> GRANT ALL PRIVILEGES ON remote.* TO remote@"%" IDENTIFIED BY "remotepwd";第二步是要修改 mysql 的配置文件 /etc/mysql/my.cnf$> sudo vi /etc/mysql/my.cnf在旧版本中找到 skip-network 阅读全文
posted @ 2012-03-03 16:46 yhhazr 阅读(250) 评论(0) 推荐(0)
摘要: <display:column title="<input type='checkbox' name='checklist' onclick='checkAll()'>"> <input type="checkbox" id="<s:property value='#attr.news.newsId'/>"> </display:column> 阅读全文
posted @ 2012-03-03 16:44 yhhazr 阅读(255) 评论(0) 推荐(0)
摘要: 1、在jsp中添加 <textarea class="xheditor{tools:'simple',html5Upload:false,upMultiple:'1',upImgUrl:'upload.action',upImgExt:'jpg,jpeg,gif,bmp,png'}"></textarea>2.编写upload.action private File filedata; private String filedataContentType; private String 阅读全文
posted @ 2012-03-03 16:43 yhhazr 阅读(323) 评论(0) 推荐(0)
摘要: validation.xml 的命名规则和放置路径:文件名:<ActionClassName>-validation.xml<ActionClassName>就是要验证的Action类的名字。要将此文件放于Class文件相同的目录。如果在Action类在struts配置中有多个action实例(action name),那么对应某个action的验证文件名规则如下:文件名:<ActionClassName>-<aliasName>-validation.xml例如:UserAction-login-validation.xml(注意:上面的< 阅读全文
posted @ 2012-03-03 16:39 yhhazr 阅读(211) 评论(0) 推荐(0)