05 2013 档案

摘要:1.创建函数 mysql>delimiter // mysql>create function 函数名(参数1 参数1类型,...) returns 返回类型 >begin >return 返回值; >end >// mysql>select 函数名(参数1, 参数2, 。。。); >// 创建存数过程 建表create table user(id mediumint(8) unsigned not null auto_increment,name char(15) not null default "",pass char( 阅读全文
posted @ 2013-05-28 20:08 聊聊IT那些事 阅读(5051) 评论(0) 推荐(0)
摘要:在开发JSP与Struts时会遇到:解决jsp访问路径与Servlet访问路径不比配问题:第一种解决方法:例子: xx.jsp 该jsp存在于WEB的目录为:/admin/login.jsp 此jsp中的使用的图片路径为: ../image/bg.gif ../css/css.css 以上为正常写法,当然如果你的WEB项目下只有.jsp没有Servlet或是Action之类的Servlet是不会有问题的。但问题就出现在此项目中有了Servlet,例如Struts的Action. 如现Servlet时,通过某jsp跳到某jsp还可以,但当通过jsp访问到servlet,在通过servlet访问某 阅读全文
posted @ 2013-05-11 16:23 聊聊IT那些事 阅读(995) 评论(0) 推荐(0)
摘要:View Code 1 public static void main(String[] args)throws Exception { 2 3 FileInputStream fi=new FileInputStream("e:/retire.png"); 4 BufferedInputStream in=new BufferedInputStream(fi); 5 FileOutputStream fo=new FileOutputStream("d:/ss.png"); 6 BufferedOu... 阅读全文
posted @ 2013-05-10 17:00 聊聊IT那些事 阅读(284) 评论(0) 推荐(0)