- 浏览: 409539 次
- 性别:
- 来自: 北京
-
最新评论
-
CSDNBenbenChong:
...
SQL里desc和asc是什么意思 -
雪狐一号:
非常好 顶一个
SQL里desc和asc是什么意思 -
boyleichinasoft:
thinking...
该如何去使用设计模式呢? -
nforce_com:
写的很好,学习了!不过Student 一般情况下不会删除所有 ...
JPA多对多 -
TaoistWar:
那是FCKEditor的,详细信息只能查看官方文档,或者直接看 ...
1.fckeditor-java-2.5给上传图片添加水印
文章列表
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class GetConn {
private Connection conn;
private PreparedStatement pstmt;
public List<String> query ...
- 2009-01-20 16:51
- 浏览 1693
- 评论(0)
JavaScript:操作Table(二):使用DOM对象(Table、TableRow、TableCell)
<html>
<head>
<title>Table Test</title>
<script type="text/javascript">
function $(id) {
return document.getElementById(id);
}
...
方法一:DOM实现
//先获取该表格的引用:
var Container = document.getElementById(TableId);
//然后创建行(TR对象)
var NewTr = document.createElement("tr");
//填充该表格行
var NewTd1 = document.createElement("td");
...
<jsp:include/>的使用
包含相对路径:<jsp:include page="test.jsp"/>指当前路径下的test.jsp文件
包含绝对路径:<jsp:include page="/test.jsp"/>指相对系统根目录,用Tomcat测试为不包含项目名的路径
例:http://192.168.1.165:8080/frame2/mark/def/402881251ee9f35d011eea36e73f0008.jsp
frame2是项目名,则指的是http://192.168.1.165: ...
- 2009-01-18 23:14
- 浏览 1373
- 评论(0)
类:
com.yx.news.view.action.TaoFunction
package com.yx.news.view.action;
import com.yx.common.constant.SystemFiles;
import com.yx.common.util.GetSetInfo;
import com.yx.dao.bean.DAOFactory;
import com.yx.news.data.bo.TStyle;
import com.yx.news.model.ITStyleService;
public class TaoFunction {
...
使只读:
document.getElementById("表单元素ID").readOnly=true;
使可写:
document.getElementById("表单元素ID").readOnly=false;
经过测试兼容于FireFox和IE
- 2009-01-18 11:06
- 浏览 2795
- 评论(2)
1.Toolbar的配置
在fckconfig.js中添加
FCKConfig.ToolbarSets["style"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
]
自定义的工具集。
使用:
<script type="text/javascript">
//第一种方法
var oFCKeditor = new FCKeditor('FCKeditor1');
...
- 2009-01-17 11:49
- 浏览 740
- 评论(0)
1.创建myconfig.js
内容:
FCKConfig.AutoDetectLanguage = false ;
FCKConfig.DefaultLanguage = "en" ;
注:语言设为英文,默认是中文的。
2.配置myconfig.js
方法一
:修改WebRoot/fckeditor/fckconfig.js中的FCKConfig.CustomConfigurationsPath = '' ;为FCKConfig.CustomConfigurationsPath = '项目名/myconfig.js' ;
方
法二
:
<script type ...
- 2009-01-17 11:29
- 浏览 830
- 评论(0)
添加jar包:
fckeditor-java-2.4.1/fckeditor-java-core-2.4.1.jar
fckeditor-java-2.4.1/lib/commons-fileupload-1.2.1.jar
fckeditor-java-2.4.1/lib/commons-io-1.3.2.jar
fckeditor-java-2.4.1/lib/slf4j-api-1.5.2.jar
sfckeditor-java-demo-2.4.1.war/WEB-INF/lib/slf4j-simple-1.5.2.jar
注:fckeditor-java-2.4.1/lib/s ...
- 2009-01-17 10:35
- 浏览 1637
- 评论(0)
构造器
var FCKeditor = function( instanceName, width, height, toolbarSet, value )
{
// Properties
this.InstanceName = instanceName ;
this.Width = width || '100%' ;
this.Height = height || '200' ;
this.ToolbarSet = toolbarSet || ...
- 2009-01-17 10:14
- 浏览 981
- 评论(0)
Fckeditor对象的属性
属性名
默认值
描述
Width
宽度
100%
Height
高度
200
Value
编辑器初始化的内容
(空字符串)
ToolBarSet
工具条集合的名称(内置有Default和Basic,也可以自己定制)
Default
BasePath
编辑器的基路径
/fckeditor/
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
< ...
- 2009-01-17 10:04
- 浏览 1033
- 评论(0)
1.安装
把FCKeditor_2.6.3.zip解压后的内容拷到WebRoot下。
2.使用
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>My JSP 'index.jsp' starting page</title>
</head>
<script type=" ...
- 2009-01-17 09:55
- 浏览 1516
- 评论(0)
ClassLoad类的加载机制:
* 并非一次性加载
* 需要的时候加载
* java -verbose class可以观察类的具体加载过程
* static语句块在加载后执行一次
* dynamic语句块每次new新的对象都会执行(等同于构造一元方法中的语句,用的较少
- 2009-01-16 22:12
- 浏览 631
- 评论(0)
global-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<sys-config>
<jdbc-info>
<driver-class-name>oracle.jdbc.driver.OracleDriver</driver-class-name>
<url>jdbc:oracle:thin:@127.0.0.1:1521:xe</url>
...
- 2009-01-16 17:37
- 浏览 736
- 评论(0)
<?xml version="1.0" encoding="UTF-8"?>
<project name="AntDemo" default="compile" basedir=".">
<property name="src" location="./src"/>
<property name="build" location="./WEB-INF/class ...
- 2009-01-16 16:48
- 浏览 2654
- 评论(0)