Categories
- Android (5)
- Cloud Computing (10)
- Development (14)
- Linux (35)
- Uncategorized (36)
- WordPress (5)
Tags
Archives
-
Random Posts
Delicious Bookmarks
- Labor Efficiency: The Next Great Internet Disruption 22 hours ago
- Apache HBase 0.92.0 has been released 2012/02/04
- Ceph 2012/02/04
- Maximize virtio-net performance with vhost-net 2012/02/03
- Android-x86 - Porting Android to x86 2012/02/01
- 中国电信将成立云计算公司 践行“天翼云计算”战略 2012/02/01
Google Reader Shares
- Hudson vs. Jenkins: Is it too soon to declare a winner?
- Galaxy Nexus 的 Super AMOLED 屏幕多了 HD,但少了 Plus
- Faenza Icon theme for Gnome 3.2 makes Ubuntu a little more eye candy
- Google 在台湾、香港及新加坡兴建自己的数据中心,一到两年后启用
- 既定的秩序是教育的结果
- Amazon S3 - 566 Billion Objects, 370,000 Requests/Second, and Hiring!
Links
Meta
Monthly Archives: June 2005
UrlRewriteFilter
Based on the popular and very useful mod_rewrite for apache, UrlRewriteFilter is a Java Web Filter for any J2EE compliant web application server (such as Resin, Orion or Tomcat), which allows you to rewrite URLs before they get to your … Continue reading
Posted in Uncategorized
Leave a comment
Struts application i18n
Java 为应用程序的国际化提供了良好的支持, Struts 也继承了这一优点。通过全程使用 unicode 编码可以非常简单地实现应用的国际化。 1,全部页面声明使用 UTF-8<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 2,建立一个 filter 来过滤所有页面文件,以确保始终使用 UTF-8 来分析所有的 incoming request. 4,以 English 来编写 default 的消息资源(message resources)文件 ApplicationResources.properties (文件名可以自行在 struts-config.xml 中指定),然后再基于这个消息资源文件翻译成想要的语言。 5,以翻译成简体中文为例子。先新建一个文本文件 ApplicationResources_zh_CN_original.properties,将其中的英文翻译成中文,然后用 native2ascii 指令转换之:# native2ascii -encoding … Continue reading
Posted in Uncategorized
Leave a comment