请教大家一个挠头的问题,有兴趣的进来瞧瞧吧!!人多了散分啦!!!

tiger_wkh52741 2004-04-27 12:56:25
本人不才,想问问各位NB人物,
如何用JSP或者Java来判断操作系统是哪种语言版本的,
比如1。判断中文,日文,英文!
2。通过你们告诉我的方法来判断
3。我想得到的结果:
中文or英文or日文中的一种
大家注意:我说的是怎么去判断,不是去显示(主要是不想麻烦大家,嘿嘿!!)
如果我表达的不清楚,大家可以再问问,我会继续表述(本人表达能力不行吗!:) )
希望大家踊跃赐教!3Q!
...全文
34 38 打赏 收藏 转发到动态 举报
写回复
用AI写文章
38 条回复
切换为时间正序
请发表友善的回复…
发表回复
MaxDD 2004-04-29
  • 打赏
  • 举报
回复
学习学习,真是长见识。
tiger_wkh52741 2004-04-29
  • 打赏
  • 举报
回复
^_^
谢谢大家的参予.问题还是有待解决,我再根据你们的提示继续研究一下
谢谢VVV_lucky(*太阳*) &bobfallen(逐流)两位的热心和不错的帖子!
也感谢大家的捧场!给分了.希望大家5.1快乐!!
atq9 2004-04-29
  • 打赏
  • 举报
回复
up
away5678 2004-04-28
  • 打赏
  • 举报
回复
学到了东西。。。。
yunuo2010000 2004-04-28
  • 打赏
  • 举报
回复
学习
xfanghua 2004-04-28
  • 打赏
  • 举报
回复
厉害,学习ing
lu8088 2004-04-28
  • 打赏
  • 举报
回复
楼上的厉害
thesecondbull 2004-04-28
  • 打赏
  • 举报
回复
呵呵,我知道其中一部分
化外之民 2004-04-28
  • 打赏
  • 举报
回复
我看不懂,晕倒~~~~~``
Leemaasn 2004-04-28
  • 打赏
  • 举报
回复
牛就一个字。
VVV_lucky 2004-04-28
  • 打赏
  • 举报
回复
看看api文档,什么都有。如下:
getProperties
public static Properties getProperties()
Determines the current system properties.
First, if there is a security manager, its checkPropertiesAccess method is called with no arguments. This may result in a security exception.

The current set of system properties for use by the getProperty(String) method is returned as a Properties object. If there is no current set of system properties, a set of system properties is first created and initialized. This set of system properties always includes values for the following keys: Key Description of Associated Value
java.version Java Runtime Environment version
java.vendor Java Runtime Environment vendor
java.vendor.url Java vendor URL
java.home Java installation directory
java.vm.specification.version Java Virtual Machine specification version
java.vm.specification.vendor Java Virtual Machine specification vendor
java.vm.specification.name Java Virtual Machine specification name
java.vm.version Java Virtual Machine implementation version
java.vm.vendor Java Virtual Machine implementation vendor
java.vm.name Java Virtual Machine implementation name
java.specification.version Java Runtime Environment specification version
java.specification.vendor Java Runtime Environment specification vendor
java.specification.name Java Runtime Environment specification name
java.class.version Java class format version number
java.class.path Java class path
java.library.path List of paths to search when loading libraries
java.io.tmpdir Default temp file path
java.compiler Name of JIT compiler to use
java.ext.dirs Path of extension directory or directories
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator ("/" on UNIX)
path.separator Path separator (":" on UNIX)
line.separator Line separator ("\n" on UNIX)
user.name User's account name
user.home User's home directory
user.dir User's current working directory


Multiple paths in a system property value are separated by the path separator character of the platform.

Note that even if the security manager does not permit the getProperties operation, it may choose to permit the getProperty(String) operation.


Returns:
the system properties
Throws:
SecurityException - if a security manager exists and its checkPropertiesAccess method doesn't allow access to the system properties.
See Also:
setProperties(java.util.Properties), SecurityException, SecurityManager.checkPropertiesAccess(), Properties
ai92 2004-04-28
  • 打赏
  • 举报
回复
好贴!学习
fishstudio 2004-04-27
  • 打赏
  • 举报
回复
up
sunniit 2004-04-27
  • 打赏
  • 举报
回复
见识了一下 连学习都谈不上了 差太远了
dovi 2004-04-27
  • 打赏
  • 举报
回复
学习
iriscole 2004-04-27
  • 打赏
  • 举报
回复
yuxh312 2004-04-27
  • 打赏
  • 举报
回复
学到一点东西
MaxDD 2004-04-27
  • 打赏
  • 举报
回复
先接分,再学习。

学习学习。
loverisyour 2004-04-27
  • 打赏
  • 举报
回复
狠啊!新手,学习下:)
allenhe 2004-04-27
  • 打赏
  • 举报
回复
Locale阿
看不懂bobfallen(逐流) ( )在写什么
要写也是firstProp_ch_CH.properties,firstProp_jp_JP.properties, firstProp_en_US.properties,firstProp_en_UK.properties,



加载更多回复(18)

62,612

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧