| 
 
 939| 1
 
 | 
java web.xml配置问题,求大神们指教 | 
| 
 
10Java金币 
 最佳答案看web.xml配置如果你是配置在
  	ccc
  	ccccc
  
你可以通过servletContext的getInitParameter("ccc")方法得到ccccc
如果你是配置在
  	form
  	xxxxxx
  	
  		aa
  		>>aa
  	
  
你可以通过servletconfig的getInitParameter("aa")方法得到aa的值
然后
Properties properties = new Properties();
InputStream inputstream =  this.getClass().getResourceAsStream("/info.properties");
properties.load(inputstream);
通 ... 
 | |||
相关帖子 | 
|||
  | ||
  | ||
  | ||
  | ||
  | ||
  | ||
  | ||
|手机版|Java学习者论坛
( 声明:本站资料整理自互联网,用于Java学习者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )
GMT+8, 2025-11-4 08:04 , Processed in 0.528755 second(s), 46 queries .
Powered by Discuz! X3.4
© 2001-2017 Comsenz Inc.