- 浏览: 360445 次
- 性别:
- 来自: 北京
最新评论
-
zzy2011266:
以上是特殊情况, 正确的方式是打开windowsshowVi ...
Android 出现 Your project contains errors, please fix them 。。。。 -
小奶牛:
BFGFG[b][/b]
PHP计算字符串长度 -
小奶牛:
[b][/b]YTYTY
PHP计算字符串长度 -
yuankunliu:
这样处理ppt里边的文本框在图片中有边框,知道怎么去掉不请问? ...
java转换ppt为图片 -
vtrtbb:
哦,我试试
简单的JS分页代码
文章列表
public class GetNav {
/**
* @param args
* @throws ParserException
*/
public static void main(String[] args) throws ParserException {
getBaiduKeyword();
}
public static String Html2Text(String inputString) {
String htmlStr = inputString; // 含html标签的字符串
String textStr = ...
public class test {
public static void main(String[] args) {
String tag = "<p>([.\\ ]*)#cms分页符#<\\/p>";
String content = "<p> 1你好啊是吗</p><p> #cms分页符#</p> ...
tomcat6下配置ssi
找到$catalina/conf/web.xml文件
把以下部分的注释去掉
<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
org.apache.catalina.ssi.SSIServlet
</servlet-class>
<init-param>
<param-name>buffere ...
import java.util.Arrays;
class TagsList
{
private String[] data;
private int size = 0;
public TagsList(int size)
{
data = new String[size];
}
public TagsList()
{
this(10);
}
public void add(String str)
{
ensure ...
java读取远程文件:
public boolean saveUrlAs(String photoUrl, String fileName) {
try {
URL url = new URL(photoUrl);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
DataInputStream in = new DataInputStream(connection.getInputStream());
DataOutputStream out = new ...
<%@ page contentType="text/html; charset=gbk" %>
<%@ page language="java" import="java.util.*" %>
<%! String year;
String month;
%>
<% month=request.getParameter("month");
year =request.getParameter("year");
%> ...
代码如下:
其中用到了apache commons-net包
public class FtpUtil {
private static FTPClient ftpClient;
private static FtpUtil instatnce;
public static final int BINARY_FILE_TYPE = FTP.BINARY_FILE_TYPE;
public static final int ASCII_FILE_TYPE = FTP.ASCII_FILE_TYPE;
private FtpUtil() {
}
...
head firset设计模式pdf 电子书籍
比较好的一本设计模式书
SELECT TOP 页大小 *
from table1
WHERE id NOT IN
(
SELECT TOP 页大小*(页数-1) id from table1 ORDER BY id
)
ORDER BY id
SELECT TOP 页大小 *
from table1
WHERE id >
(
SELECT ISNULL(MAX(id),0)
from
(
SELECT TOP 页大小*(页数-1) id from table1 ORDER BY id
) A
)
ORDER BY id
首先设置 web.xml 让所有请求扩展名为.do 的都通过ControllerFilter.java来解析
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns ...
首先,配置数据源context.xml 将这个文件放在<catalina_home>的conf目录下,我用的是tomcat6
context.xml 内容如下:
<Resource name="jdbc/BBS" auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:s ...
仿QQ菜单
- 博客分类:
- javascript
<html>
<head>
<title>模拟QQ菜单效果</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<STYLE type="text/css">
A:link { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATIO ...
/*
showPages v1.1
----------------------
var pg = new showPages('pg');
pg.pageCount = 12; //定义总页数(必要)
pg.argName = 'p'; //定义参数名(可选,缺省为page)
pg.printHtml(); //显示页数
Supported in Internet Explorer, Mozilla Firefox
*/
function showPages(name) { //初始化属性
this.name = name; ...
CMS模块基本架构图