- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 ch.ubique.inieditor.IniEditor
这个类用来读取ini文件的,在网上看到一个例子挺不错的, [root] role = administrator last_login = 2003-05-04 [joe] role = author last_login = 2003-05-13 读取文件,改变他的内容 IniEditor users = new IniEdito
2012-09-10 13:48:16 1126 1
转载 <s:action>标签的用法
使用action标签,可以允许在jsp页面中直接调用Action,在调用Action时候,可以指定需要被调用的Action的name和namespace.如果指定了executeResult参数的属性值为true,该标签会把Action的处理结果(视图资源)包含到本页面中. 使用action标签指定属性有: id: 可选属性,作为该Action的引用ID name:必选属性,指定
2012-09-08 16:41:36 845
转载 dom4j 中文乱码问题
在用 dom4j 以 utf8 编码格式生成 xml 文档后,发现该 xml 文档包含中文的部分异常,无法读取。随后被逼无奈,只好使出猥琐招数,直接将要写入 xml 的字符串重新以 utf8 格式编码后再写入 xml:str = new String(str.getBytes(), "UTF8");终于,xml 文档异常消除,可以正常读取。然而,其中的中文部分是却乱码,悲了个剧,事
2012-09-07 15:31:44 442
转载 JAVA UTF-8 GB2312 编码互转
import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class UnicodeChange { //UTF-8->GB2312 public static String utf8Togb2312(String str){
2012-09-07 15:29:52 2374
原创 java 判断字符串是否是IP
package org.cric.d;public class WhetherIP{ public static String trimSpaces(String IP){//去掉IP字符串前后所有的空格 while(IP.startsWith(" ")){ IP= IP.substring(1,IP.length()).trim(
2012-09-06 13:08:56 3484
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人