56 | | * index.jsp |
| 63 | === taglibs-i18n.tld === |
| 64 | |
| 65 | || Tomcat || $tomcat/webapps/$pj/WEB-INF/taglibs-i18n.tld || |
| 66 | || Eclipse || $worspace/$pj/WebContent/WEB-INF/taglibs-i18n.tld || |
| 67 | |
| 68 | [http://trac.nchc.org.tw/cloud/raw-attachment/wiki/waue/2010/0805/taglibs-i18n.tld (可下載附件)] |
| 69 | |
| 70 | |
| 71 | === taglibs-i18n.jar === |
| 72 | |
| 73 | || Tomcat || $tomcat/webapps/$pj/WEB-INF/lib/taglibs-i18n.jar || |
| 74 | || Eclipse || $worspace/$pj/WebContent/WEB-INF/lib/taglibs-i18n.jar || |
| 75 | |
| 76 | [http://trac.nchc.org.tw/cloud/raw-attachment/wiki/waue/2010/0805/taglibs-i18n.jar (可下載附件)] |
| 77 | |
| 78 | |
| 79 | == 2. 多國語系參數properties檔 == |
| 80 | |
| 81 | === i18n_en.properties === |
| 82 | |
| 83 | || Tomcat || $tomcat/webapps/$pj/WEB-INF/classes/org/mytest/i18n_en.properties || |
| 84 | || Eclipse || $worspace/$pj/src/org/mytest || |
| 85 | |
| 86 | {{{ |
| 87 | #!text |
| 88 | test1 = Hello world |
| 89 | test2 = Now you can let jsp i18n using i18n taglib! |
| 90 | }}} |
| 91 | |
| 92 | === i18n_zh_TW.properties === |
| 93 | * utf8 轉碼工具 [http://www.tool.la/UTF-8/] |
| 94 | |
| 95 | || Tomcat || $tomcat/webapps/$pj/WEB-INF/classes/org/mytest/i18n_zh_TW.properties || |
| 96 | || Eclipse || $worspace/$pj/src/org/mytest || |
| 97 | |
| 98 | {{{ |
| 99 | #!text |
| 100 | test1 = 你好!世界 |
| 101 | test2 = 你現在已經能讓你的JSP使用I18N的taglib跟世界接軌囉! |
| 102 | }}} |
| 103 | |
| 104 | == 3. JSP 程式碼 == |
| 105 | |
| 106 | === index.jsp === |
89 | | * taglibs-i18n.tld |
90 | | |
91 | | || Tomcat || $tomcat/webapps/$pj/WEB-INF/taglibs-i18n.tld || |
92 | | || Eclipse || $worspace/$pj/WebContent/WEB-INF/taglibs-i18n.tld || |
93 | | |
94 | | [http://trac.nchc.org.tw/cloud/raw-attachment/wiki/waue/2010/0805/taglibs-i18n.tld (可下載附件)] |
95 | | |
96 | | |
97 | | * taglibs-i18n.jar |
98 | | |
99 | | || Tomcat || $tomcat/webapps/$pj/WEB-INF/lib/taglibs-i18n.jar || |
100 | | || Eclipse || $worspace/$pj/WebContent/WEB-INF/lib/taglibs-i18n.jar || |
101 | | |
102 | | [http://trac.nchc.org.tw/cloud/raw-attachment/wiki/waue/2010/0805/taglibs-i18n.jar (可下載附件)] |
103 | | |
104 | | * i18n_en.properties |
105 | | |
106 | | || Tomcat || $tomcat/webapps/$pj/WEB-INF/classes/org/mytest/i18n_en.properties || |
107 | | || Eclipse || $worspace/$pj/src/org/mytest || |
108 | | |
109 | | {{{ |
110 | | #!text |
111 | | test1 = Hello world |
112 | | test2 = Now you can let jsp i18n using i18n taglib! |
113 | | }}} |
114 | | |
115 | | |
116 | | |
117 | | * i18n_zh_TW.properties |
118 | | * utf8 轉碼工具 [http://www.tool.la/UTF-8/] |
119 | | |
120 | | || Tomcat || $tomcat/webapps/$pj/WEB-INF/classes/org/mytest/i18n_zh_TW.properties || |
121 | | || Eclipse || $worspace/$pj/src/org/mytest || |
122 | | |
123 | | {{{ |
124 | | #!text |
125 | | test1 = 你好!世界 |
126 | | test2 = 你現在已經能讓你的JSP使用I18N的taglib跟世界接軌囉! |
127 | | }}} |