用hashmap把属性放进去,不过我从来没有放过,直接lookup,也不知道放与不放有什么区别
解决方案 »
- 急急急 java struts2.json.JSONException怎么解决
- 求Hibernate数据库表跨年查询
- 求高手帮忙 学生个人信息管理程序
- 做了一个文件导入的功能,英文,数字能正确导入,导入中文确实乱码
- tomcat启动错误,大家帮帮我吧,谢谢!
- struts1和stru2比较
- tomcat数据源,用纯java方式出现 javax.naming.NoInitialContextException
- 一些鬼人用VC写的DLL,要我用JAVA调用,晕死~~。
- 在struts的action中,什么是validate formbean,用它和不用它有什么区别,怎样用它?
- 初学Struts,一个问题,谢谢
- 我的网页分了好多FRAME,请问如何在SERVLET中决定在哪个FRAME中显示JSP???
- struts 中jsp 页面的调用问题
String url = "t3://mky:7001";
String user = null;
String password = null;
Properties properties = null;
try {
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
if (user != null) {
properties.put(Context.SECURITY_PRINCIPAL, user);
properties.put(Context.SECURITY_CREDENTIALS, password == null ? "" : password);
} return new InitialContext(properties);
}
catch(Exception e) {
log("Unable to connect to WebLogic server at " + url);
log("Please make sure that the server is running.");
throw e;
}
}