文件名称:Count
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2014-09-23
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- lpu****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Java以本地化显示错误信息的例子源码,在编写支持程序时,总是需要显示某些错误的信息,支持国际化和本地化的程序需要根据操作系统提供的信息来使用用户本地字符集来显示相应的错误信息。此程序根据相应的例外处理指定相应的错误显示信息,它为每个例外提供相应的错误消息。
实现方法和大致的思路:
在资源文件内为每个例外类构建相应的错误消息,在程序当中载入这些资源,使用Errors 作为在
资源当中查找的根,而使用例外对象的类名作为资源名字。-Java source code examples to localize the error message is displayed, in the preparation of the support program, always need to display some wrong information, support internationalization and localization program needs based on the information provided by the operating system to use the user s local character set to display appropriate error message. This program specifies an appropriate error message is displayed in accordance with the appropriate exception handling, it provides an appropriate error message for each exception.
Implementation and general ideas:
In the resource file to build an appropriate error message for each exception type, load these resources in the program which, as in the use of Errors
Resources were looking for roots, and use the exception object s class name as the resource name.
实现方法和大致的思路:
在资源文件内为每个例外类构建相应的错误消息,在程序当中载入这些资源,使用Errors 作为在
资源当中查找的根,而使用例外对象的类名作为资源名字。-Java source code examples to localize the error message is displayed, in the preparation of the support program, always need to display some wrong information, support internationalization and localization program needs based on the information provided by the operating system to use the user s local character set to display appropriate error message. This program specifies an appropriate error message is displayed in accordance with the appropriate exception handling, it provides an appropriate error message for each exception.
Implementation and general ideas:
In the resource file to build an appropriate error message for each exception type, load these resources in the program which, as in the use of Errors
Resources were looking for roots, and use the exception object s class name as the resource name.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Count\.classpath
.....\.project
.....\bin\myejb\Count.class
.....\...\.....\CountBean.class
.....\...\.....\CountClient.class
.....\...\.....\CountHome.class
.....\META-INF\ejb-jar.xml
.....\src\myejb\Count.java
.....\...\.....\CountBean.java
.....\...\.....\CountClient.java
.....\...\.....\CountHome.java
.....\bin\myejb
.....\src\myejb
.....\bin
.....\META-INF
.....\src
Count