`
vtrtbb
  • 浏览: 360445 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
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 = ...
经典的MVC框架   老外写的。

正文分页

    博客分类:
  • CMS
public class test { public static void main(String[] args) { String tag = "<p>([.\\&nbsp;]*)#cms分页符#<\\/p>"; String content = "<p>&nbsp;&nbsp;&nbsp;&nbsp;1你好啊是吗</p><p>&nbsp;&nbsp;&nbsp;&nbsp;#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读取远程文件

    博客分类:
  • java
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菜单

<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模块基本架构图
Global site tag (gtag.js) - Google Analytics