随笔分类 - j2ee
摘要:package DC.Utility;import java.io.BufferedReader;import java.io.InputStreamReader;public class GetWebContent { public static String getWebCon(String domain) { // System.out.println("开始读取内容...("+domain+")"); StringBuffer sb = new StringBuffer(); try { java.net.URL url = new java.net.URL(domain);
阅读全文
摘要:import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import org.w3c.dom.*;import org.xml.sax.SAXException;import javax.xml.parsers.*;import javax.xml.transform.*;import javax.xml.transform.dom.DOMSource;import javax.xml.transform.stream.
阅读全文
摘要:7z a -tzip -p111 archive.7z txt.txt 压缩 密码为1117z x -tzip -p111 archive.7z 解压 密码为1117z.exe 是 7-Zip 的命令行版本。7z.exe 使用 7-Zip 的其它模块,7za.exe 是7-Zip 的独立版本,7za.exe 仅支持 7z、zip、gzip、bzip2 和 tar 格式,7za.exe 使用时不会调...
阅读全文
摘要:package org.util;import java.io.File;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import java.net.URLClassLoader;import java.util.ArrayList;import java.util.Enu...
阅读全文
摘要:package org.hml.okok;public class okokokoko { public String sayHello(String str) { return str; }}//用反射的方式调用package org.hml.okok;import java.lang.reflect.Method;public class testClass { public static ...
阅读全文
摘要:在struts2中需要做国际化的有:jsp页面的国际化,action错误信息的国际化,转换错误信息的国际化,校验错误信息的国际化在之前的例子中已经做过和国际化相关的例子了,在struts.xml中配置过view plaincopy to clipboardprint? <constantname="struts.custom.i18n.resources"value="message">...
阅读全文
摘要:【台湾】良葛格學習筆記:(总览页面)http://caterpillar.onlyfun.net/Gossip/【台湾】良葛格--Struts學習筆記!http://caterpillar.onlyfun.net/Gossip/Struts/StrutsGossip.htm【台湾】良葛格--Spring學習筆記!http://caterpillar.onlyfun.net/Gossip/Sprin...
阅读全文