摘要: 1.SSH 框架,action、service和bean都需要注册,并且action和service都要给getter、setter方法。 2.事务处理不能try-catch,要throws出去。 3.有一个action,就有一个xml配置文件。 4.HQL是写在配置文件中的。 5.隐藏域的使用。 阅读全文
posted @ 2016-08-28 10:26 F领主 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 在SQLPLUS下,实现中-英字符集转换alter session set nls_language='AMERICAN';alter session set nls_language='SIMPLIFIED CHINESE'; 主要知识点:一、有关表的操作1)建表 create table tes 阅读全文
posted @ 2016-08-23 14:15 F领主 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 2016/09/13 var t1 = window.setInterval("scanPrice()",5000); function scanPrice(){ //定时器 } js: var s= "${month}"; ""必须加上 EL:<c:if test="${not empty abc 阅读全文
posted @ 2016-08-19 13:35 F领主 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 调用这样一个头文件<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions " %> 下面就可以直接调用以下的函数。 函数名 函数说明 使用举例 fn:contains 判断字符串是否包含另外一个字符串 <c:if test 阅读全文
posted @ 2016-08-18 17:30 F领主 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 1.ctrl+o //大纲 2.ctrl+m //最大化、还原 3.ctrl+k //查找 4.ctrl+l //定位行 5.ctrl+q //上次操作 6.ctrl+enter、shift+enter //向下添加空格行 7.ctrl+shift+t //查找类 8.ctrl+shift+r // 阅读全文
posted @ 2016-08-18 17:27 F领主 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ①接口:interface 接口可以单继承接口,也可以多继承接口,不用也不能实现父类接口定义的方法。 ②接口定义的方法必须是public与abstract类型的,接口中的变量会被隐式地指定为public static final变量。 ③接口中所有的方法不能有具体的实现,也就是说,接口中的方法必须都 阅读全文
posted @ 2016-08-17 10:05 F领主 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 使用URLDecoder.decode(string, "utf-8")改变编码 ①Form.name = URLDecoder.decode(Form.name, "utf-8"); ②String[] index = {URLDecoder.decode(request.getAttribute 阅读全文
posted @ 2016-08-16 15:46 F领主 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: 有两个简单例子,以说明 “exists”和“in”的效率问题 1. select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ; T1数据量小而T2数据量非常大时,T1<<T2 时,exists 的查询效率高。 2. select 阅读全文
posted @ 2016-08-12 11:56 F领主 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1、内存配置问题,eclipse目录下eclipse.ini文件的设置上有问题,一般的ini文件设置主要包括以下几项: -vmargs-Xms40m-Xmx256m-XX:PermSize=64M-XX:MaxPermSize=128M 以下解释其意思。 -vmargs:说明后面是VM的参数-Xms 阅读全文
posted @ 2016-08-11 09:22 F领主 阅读(1750) 评论(0) 推荐(0) 编辑
摘要: <c:choose>、<c:when> ||<c:otherwise><c:choose> 和 <c:when> 、 <c:otherwise> 一起实现互斥条件执行,类似于 Java 中的 if else.<c:choose> 一般作为 <c:when> 、 <c:otherwise> 的父标签。 阅读全文
posted @ 2016-08-05 13:28 F领主 阅读(165) 评论(0) 推荐(0) 编辑